Security

Who Keyvul protects you from, and how

No marketing slogans: a list of threats, the mechanism for each one and honest limits. The full technical description is in the whitepaper.

Threat model

Who could do what, and what it gets them

Network eavesdroppingConnections use TLS. Mail and file content is additionally encrypted on your device.
Database or backup leakThe private key is protected with Argon2id, the TOTP secret with a server key (AES-256-GCM), and sessions are stored as hashes.
Compromised file storageAES-256-GCM, ciphertext bound to its place, encrypted names and periodic checksum verification.
Order to disclose dataThe server doesn’t have your passphrase, so it can’t unlock your private key. It can only hand over ciphertext, the encrypted vault and metadata.
Malicious senderAn HTML sanitiser with an allow-list, a frame without scripts, remote image blocking, detection of tracking pixels and suspicious links.
Password guessingAttempt limits per address and per account, checking passwords against known leaks, TOTP and WebAuthn keys (hardware keys and passkeys).
Hijacked session or deviceRemembering the passphrase is optional, short-lived and erased on lock. The key that protects it can’t be copied or read out.

Keys

Two secrets and a rescue phrase

When you create an account the app generates an OpenPGP key pair on the curve25519 curve on your device. The private key is encrypted with your passphrase (Argon2id) before it reaches the server. The server stores it but can’t use it.

The account password is for signing in and the key passphrase is for encryption. They are two different secrets and the app won’t let you use the same value for both. When an account has TOTP, the server releases the vault only after a code is entered, so the password alone isn’t enough to fetch the encrypted key.

The recovery phrase is 10 random words from the EFF Large Wordlist (7,775 words), about 129 bits of randomness. It unlocks a second copy of the private key, after which you set a new key passphrase. We show it only when it is created. Generating a new one invalidates the previous one.

We don’t have this phrase and can’t recreate it. That is the price of nobody but you having access: store it somewhere safe.

Limits

What encryption doesn’t hide

For mail to be delivered at all, the server has to know the addresses, subject, size and time of a message. We say so openly instead of promising “full anonymity”.

  • A sender without PGP sends a message protected only in transit (TLS). We encrypt it when it is stored in your mailbox.
  • A recipient without a key gets a message that is not end-to-end encrypted, or a link with a password. The app always labels this.
  • A script on the same page could peek at a remembered passphrase. That is why the CSP is strict and remembering the passphrase is off by default.
Standards instead of home-made cryptography. Mail uses OpenPGP (RFC 9580) and PGP/MIME (RFC 3156) through the OpenPGP.js library, Drive uses AES-256-GCM with WebCrypto.

Full description in the whitepaper

Questions

Frequently asked questions

What does the Keyvul server know about me and my mail?

It knows the metadata needed to deliver mail (addresses, subject, size, time) and how much space you use. It can’t see message bodies, attachments, file names or Drive content.

Can you hand over my data on request?

We can only hand over what we have: ciphertext, the encrypted key vault and metadata. We don’t have your key passphrase, so we can’t unlock your private key, read the content or hand it over in readable form.

What if the database leaks?

Private keys in the database are encrypted with your passphrase (Argon2id), so they can’t be used without it. Argon2id slows down guessing, but resistance depends on the strength of the passphrase, so choose a long one. TOTP secrets are encrypted with a server key, and sessions are stored as token hashes, not the tokens themselves.

Could a script on the page steal my passphrase?

We limit this with a strict CSP: scripts only from our domain, no external scripts, connections only to our API and mail server. Remembering the passphrase is off by default and protects against someone peeking into the browser profile, but not against a script running on the same page.

Start writing privately.

Create an account and see what email we can’t read looks like.