…
Aa
Palette
← Vault — zero-knowledge password manager

Vault — zero-knowledge password manager

Security design

The key hierarchy, where trust ends, and the one risk accepted knowingly.

Where trust ends

Everything below the browser is assumed hostile. That assumption drives three choices that would otherwise look excessive:

  • The master password is never transmitted. The server receives an Auth Key, a separate HKDF branch of the Master Key, and stores only an scrypt verifier of it.
  • All entry content is encrypted client-side, including names, tags and folder names. The server cannot read, search or index any of it.
  • Email addresses are stored as HMAC digests under a pepper kept outside the database, so a dump does not identify account holders.

Key hierarchy

Master password + per-user salt
        │ PBKDF2-SHA256, 600,000 rounds
        ▼
   Master Key ──┬── HKDF "vault.kek.v1"  ──► KEK ──► wraps the Vault Key
                └── HKDF "vault.auth.v1" ──► Auth Key ──► server (scrypt verifier)

   Vault Key (random, generated once)
        ├── wrapped by the KEK            (master password)
        ├── wrapped by the Recovery KEK   (recovery key)
        └── encrypts every field, AES-256-GCM, fresh 96-bit IV

Because a random Vault Key encrypts everything and the master password only wraps it, changing the password is a single write: nothing is re-encrypted and history survives. A recovery key, shown once at sign-up, is the only way back from a forgotten password — there is no reset, because the server cannot perform one.

Each account also has an ECDH P-256 identity key pair, which is how a collection key reaches a colleague without the server learning it.

Every previous version, encrypted like the item

The risk accepted on purpose

The hostname is a free dynamic-DNS name, and it is the whole user-facing trust path: whoever controls that name could serve their own JavaScript, which would see the master password. Unlike a server compromise, that is not bounded by the key hierarchy. It is written down in the threat model and accepted knowingly for a $0 deployment, rather than hidden.

More about Vault — zero-knowledge password manager

Achievements

Level 1 · Visitor · 0 XP —

Save your progress

Sign in to keep your points on every device and spend coins to unlock themes and colour palettes. Everything you earned as a guest comes with you.

Loading sign-in options…

We store the name and email address your provider shares, to save your progress. Shivam Sharma may use your email to get in touch. You can delete your account at any time from this window. Privacy

Shop