End-to-End Encryption
Encrypt file contents, attachments, metadata, and file paths on your device using Web Crypto before anything touches the server.
How E2EE Works in Synora
End-to-end encryption is optional per vault and configured client-side in plugin/src/sync/crypto.ts using the standard Web Crypto API (crypto.subtle), which works identically across Desktop, Android, and iOS.
Key Derivation Pipeline
- Passphrase input: You choose an encryption passphrase of at least 8 characters when creating your vault (or later via vault E2EE setup).
- Master key derivation:
PBKDF2-SHA256with 210,000 iterations and a random 16-byte salt derives a 256-bit master secret. - Subkey separation (
HKDF-SHA256):info = "synora-content-v1"→ 256-bit AES-GCM content key (encrypts file bytes, metadata, and key-check token).info = "synora-path-v1"→ 256-bit HMAC-SHA256 path key (blinds vault paths).
Encrypted Wire Format (SYN1)
Every encrypted blob and encrypted metadata field uses the SYN1 envelope:
[ 4 bytes: "SYN1" (0x53 0x59 0x4E 0x31) ] + [ 12 bytes: random AES-GCM IV ] + [ AES-256-GCM ciphertext + 16-byte auth tag ]
- Blinded paths: Vault paths are transformed locally via
HMAC-SHA256(pathMacKey, plainPath)intoe2ee/<64-hex-chars>. - Encrypted metadata: Real
path,size,mtimeMs, andplaintextHashare JSON-serialized, encrypted withAES-256-GCM, and stored insideencryptedMeta(max 4096 chars). - Verification without secrets: The server stores only
kdf,iterations,salt, and an encrypted constantkeyCheck(plaintext"synora-e2ee-keycheck-v1"). When a newly paired device unlocks the vault, it decryptskeyChecklocally to confirm the passphrase before syncing.
What the Server Sees vs. Cannot See
| Visible to Server (Metadata Required for Routing) | Hidden From Server (Encrypted / Blinded Client-Side) |
|---|---|
| Vault ID, device names/platforms, audit event timestamps, sequence numbers | Note contents, Markdown text, and binary attachment payloads |
Opaque e2ee/<hmac> blinded path identifiers & ciphertext SHA-256 hashes |
Real file names, folder hierarchy, plaintext sizes, and plaintext hashes |
Non-secret KDF salt, iteration count, and encrypted keyCheck |
Your vault passphrase and derived AES/HMAC keys |