PawlE2EE
A small end-to-end encrypted messenger that I wrote from scratch to understand how Signal-style protocols fit together. The browsers do all the encryption. The server relays ciphertext, stores public keys and holds messages for people who are offline. It never sees a message or a private key.
A pawl is the small catch that keeps a ratchet from slipping backward, which is the job the Double Ratchet does for every message.
This is a learning project, not a product. The cryptography is hand-written and has not been audited. If you need to protect something real, use Signal.
What it does
You sign in with a passkey, so there are no passwords. You can chat one to one or in groups, and send files or images up to 10 MB. The page shows delivery ticks and who is online, and in a one-to-one chat it shows when the other person is typing. History is searchable, and each conversation can have a timer after which messages disappear from the devices that follow it.
One account can run on up to five devices. You link a new one by typing a 20-digit code on the first device, and the messages you send then show up on all of them. The first device can also remove another device, or one of its passkeys.
How it works
The first message to someone starts a session with an X3DH handshake, using keys the other person uploaded earlier, so they don't have to be online. After that every message gets a fresh key from a Double Ratchet. If one key is stolen, the other person's next reply locks the thief out again.
Files are encrypted in the browser before they are uploaded. The server stores scrambled bytes under a random id. The file's name and key travel inside an ordinary encrypted message, so the server never sees either.
Both people in a chat can compare a safety number built from their two account keys. If the numbers differ, a key was swapped on the way. You can mark a number as verified, and the page warns you if it changes later.
Passkeys are tied to the device that made them, so removing a device also removes its way back in.
Tests
The repository has 108 automated tests. Some attack the login and the relay directly, with forged signatures, replayed logins, sockets that have no session and messages confirmed by someone who isn't the recipient. Others run the real page script in Node and drive whole conversations, groups and file sending included.
Screenshots





Limits
The server can see who talks to whom, and when. The history in your browser is encrypted with a passphrase you choose, and if you forget it that history is gone. There is no key backup, so if you lose the first device, no new device can be added. Group lists are not shared between your own devices.
There is no public server for the chat itself, so this page is only a description of the project. The full list of known problems, with a severity for each, is in the security notes.
Run it yourself
The README has the steps. With Docker it is one command from the backend folder.
docker compose up -d --build