Skip to content
Keystead

Security whitepaper

How Keystead protects your data, in plain language — including the limits.

Zero-knowledge architecture

All vault data is encrypted and decrypted in your browser. The server stores ciphertext only and has no key that can open it.

Your master password never leaves your device. It is stretched with Argon2id (64 MiB, 3 passes) and a per-user salt into a master key. From that key we derive two independent values: an authentication hash that is sent to the server, and an encryption key that is not.

The server stores only a keyed hash (HMAC-SHA-256 with a server-side pepper) of the authentication hash, so a database leak does not reveal anything that can be replayed as a login.

Item encryption

Every item has its own random 256-bit key. The item body — including its title, tags and password history — is encrypted with XChaCha20-Poly1305, an authenticated cipher, so any tampering is detected.

File attachments are encrypted with the item key in the browser before upload. Object storage only ever holds ciphertext.

Sharing

Each user has an X25519 key pair. The private key is encrypted with the key derived from the master password.

Sharing an item wraps its key for the recipient's public key (a sealed box). Groups and folders have their own key pairs: an item shared with a group is wrapped for the group key, and the group key is wrapped for each member.

One-time links carry their decryption key in the URL fragment, which browsers never send to servers. The server can count and expire views but cannot read the content.

A limit you should know: permission levels such as “view only” are enforced by the server for changes and by the app for display. Anyone who can decrypt an item could, with enough effort, extract it. Share only with people you trust with the secret.

Account recovery

At signup you receive a recovery code. It can decrypt a second copy of your private key, so you can set a new master password yourself.

Each organization also has a recovery key held by its owner and admins. With an explicit, logged approval, an admin can re-wrap a member's key for them. This means your organization's admins — not us — are able to recover member vaults.

Sessions and sign-in

Short-lived signed access tokens (15 minutes) and rotating refresh tokens kept in an HttpOnly, SameSite=Strict cookie. Sessions can be listed and revoked remotely, and a revoked or suspended account loses access immediately.

Two-factor authentication with TOTP and single-use backup codes, brute-force lockout, rate limiting, optional IP allowlists, automatic vault locking after inactivity and clipboard clearing.

Audit log

Security-relevant actions are written to an append-only log. Each entry includes the hash of the previous one, so removing or editing an entry breaks the chain — admins can verify the chain at any time.

What we can and cannot see

We can see: account email addresses and names, organization structure, which encrypted items exist and who they are shared with, item types, timestamps, IP addresses and the activity log.

We cannot see: your master password, item contents, titles, usernames, passwords, notes, tags or file contents.

Trust boundary: like any web app, the code that performs encryption is delivered by our servers. A strict Content Security Policy limits what can run, but you are trusting that delivery.