SecureChat

How SecureChat works

A direct, encrypted line between the people in a room.

Getting started

  1. Create a room. Pick a name, a room ID, and a strong password (the dice button generates one).
  2. Invite people. Copy the invite link, which holds the room ID only, and send the password through a different channel.
  3. Join. Others enter the same room ID and password.
  4. Talk. Chat, share files up to 20 MB, or start an end-to-end encrypted voice call from the people list.

Security and privacy

Your browser stretches the room password with PBKDF2 (600,000 rounds) and splits the result into separate keys for text and files, for voice, and for the room's hidden address. Everything is sealed with AES-256-GCM. Unauthenticated connections are dropped, and the host stamps each sender's name so members cannot impersonate each other.

Use your own server

By default SecureChat uses the free public PeerJS server to introduce browsers to each other. It sees IP addresses and temporary connection IDs, never messages or voice. For more privacy, open Connection server on the start screen, tick Use my own server and enter your address. Invite links carry the server address, so guests connect to the same one.

  1. Run a PeerJS server: npx peerjs --port 9000 --path /
  2. Put it behind HTTPS (for example nginx or Caddy), which gives you wss://.
  3. Optional: run coturn for your own STUN/TURN and list it under STUN / TURN servers.

Everyone in a room must use the same server. Your messages stay end-to-end encrypted either way.

Compatibility

Chrome, Edge, Firefox and Safari 15.4 or newer support encrypted voice. If a browser or the other person can't, or the extra layer can't be verified, the call switches automatically to standard WebRTC encryption and the call screen says so.

Strict corporate networks can block direct connections. When that happens the connection falls back to a relay, which still only carries encrypted data.