MT
Malte Therkildsen
Lab
Sealed
P1 · Encrypted messages
Side by side
Alice
Bob
The relay
How it is built
therkildsen.dev
Home
The cases and the selected work
Projects
Every project, on one drum
Lab
The animation library, running
Archive
Every component in one field
Writing
Notes on what I build, with it running
Method
What I make and how I work
Services
What I build for a business
About
Who builds this
Contact
One question at a time
?
Device
Waiting for the other device
No safety number yet
Messages are encrypted on this device.
↵ to send
How Sealed is built
Each device makes an X25519 key pair when it opens, and sends only the public half. A browser without X25519 uses P-256.
Each message gets a new random salt. HKDF turns the shared secret and the salt into an AES-GCM key, so no two messages use the same key.
Both devices show a safety number made from both public keys. When the numbers match, nobody in the middle swapped a key.
Send a changed copy
flips one bit in the last message and sends it on. The receiving device refuses it, because the authentication tag no longer matches.