Privacy as design
Zero-knowledge sync for your web app.
Data is sealed on the device with a key only the user holds.
The server stores ciphertext it can't open.
A JavaScript package for the browser,
and an ASP.NET Core backend to sync against.
Encrypt text with a passcode. AES-256-GCM seals it, and PBKDF2 turns the passcode into the key that wraps the sealing key.
Seal
Unseal
Encrypt or decrypt a file of up to 1 MB. The output is a .cnsl file that holds the original file name, the salt, the iv, the wrapped key and the ciphertext. The file stays in your browser.
Encrypt
Decrypt
Make an account key backed by a BIP-39 mnemonic, a phrase of 24 words. Seal a message with it, then recover the key from the words alone and open the message: that shows the recovery works.
Create the account
Save these 24 words. They are the only way to get the account key back if you forget the passphrase.
seal a message with the account key
Seal a message
lose the key, then recover it from the mnemonic
Recover and unseal
Alice and Bob each have an ECDH key pair, to encrypt to, and an ECDSA key pair, to sign with. Alice seals a message to Bob's public key and signs it. Bob checks her signature and opens it with his private key.
Alice
Identity
- ECDH public
- —
- ECDSA public
- —
- Private keys
- kept in memory
Compose
Bob
Identity
- ECDH public
- —
- ECDSA public
- —
- Private keys
- kept in memory
Received packet
- ciphertext
- —
- iv
- —
- ephemeral public
- —
- signature
- —
- sender
- Alice
No message received yet.
Make an ECDSA P-256 key pair, sign a document with the private key, then verify the signature with the public key. Change the document or the signature to see verification fail.
Make a signing key pair
- public key
- —
- private key
- kept in memory, never exported
Sign a document
- algorithm
- ECDSA P-256 / SHA-256
- signed over
- —
- signature
- —
Tamper before you verify (optional)
Verify the signature
Verification uses the public key only. The private key plays no part in it.
Change the passphrase that protects an account key. The key itself never changes, so what was sealed before the rekey still opens with the new passphrase.
Create an account key
now change the passphrase
Rekey
The account key stays the same and only its wrapping changes. PBKDF2 runs twice: once to unwrap with the old passphrase, once to wrap again with the new one.
Different bytes: a new random salt, and a wrapping key made from the new passphrase. The account key inside is the same, so what was sealed before still decrypts.
check that the old content still opens
Unseal with the new passphrase
The message was sealed before the rekey. Unseal it now with only the new passphrase and the new wrapped key.
A 128-bit Secret Key is a second factor for wrapping the account key. Neither the passphrase nor the Secret Key alone can unwrap it.
Wrap with the passphrase and a Secret Key
A random 128-bit Secret Key is made. The account key is wrapped with the passphrase and the Secret Key together, so PBKDF2 never sees the passphrase alone.
prove that both factors are needed
Unlock with the right credentials
The same passphrase and Secret Key as in step 1. They unwrap the account key, and it opens the sealed message.
now try without the Secret Key
Try a wrong Secret Key
The passphrase is right, but a freshly made, wrong Secret Key takes the place of the real one. Unwrapping has to fail: the passphrase alone is not enough.
Make or paste a JSON Web Key. The inspector checks it, decodes every field, and takes a SHA-256 fingerprint of the raw public point.
Key input
Inspection result
Highlights
Sealed on the device
Each record is encrypted with AES-256-GCM on the browser's own SubtleCrypto before it leaves. The server holds ciphertext, wrapped keys, salts and public keys, and nothing it can read.
Two factors and a recovery phrase
The account key is wrapped under a passphrase and a Secret Key kept on the device. A 24-word BIP-39 phrase, shown once, recovers it when both are lost.
Devices join by approval
A new device gets the key only when the user sees the same code on it and on a device that already holds the key, and confirms they match. The ceremony's screens come as Lit components.
Sync that merges on the client
SyncEngine moves a user's records between their devices through your backend. The server orders ciphertext, and merging runs on the client, on plaintext.
Channels between users
A channel shares one key across users. Each member holds it wrapped under their own circle key, so every device in a member's circle opens it.
A backend to match
ConsealDev.Conseal serves the sync and circle routes for ASP.NET Core. The OpenAPI spec is the contract for a backend in any other language.