Security whitepaper
How Password Manager: CodeMind encrypts, stores and syncs your vault, what our server can see, and the limits of this design. It covers the Android app, the Web Vault, the browser extensions and our server. There is no iPhone app yet.
1. Keys and key derivation
All cryptography uses the libsodium library.
- Master key. Your master passphrase (Unicode NFKC, UTF-8) goes through Argon2id with a random 16-byte salt for your account: 3 passes and 64 MiB of memory by default. This runs on your device.
- Settings bounds. Clients accept Argon2id settings only between 3 and 16 passes and 64 and 512 MiB, so a hostile server cannot weaken the derivation or exhaust your device.
- Two keys from one. A key-derivation function splits the master key into an encryption key, which never leaves your device, and an authentication key. Only the authentication key is sent at sign-in, as a sign-in proof.
- Proof storage. The server stores Argon2id(HMAC-SHA256(server secret, proof)). The secret lives in the server's configuration, not in the database.
- Account key. 32 random bytes per account encrypt your vault. The server stores it only wrapped with XChaCha20-Poly1305: once by your encryption key and once by your recovery key. The associated data binds each wrapped key to your account id.
2. Encryption of entries
- Each entry has its own random key, wrapped by the account key and bound to the entry's id.
- The whole entry is encrypted as one block: type, title, username, password, website addresses, Android app identities, notes, authenticator secret, custom fields, folder, favourite flag and password history.
- The block is padded to a multiple of 256 bytes, so its exact length is hidden, then encrypted with XChaCha20-Poly1305 (authenticated encryption) with the entry id as associated data. A changed or swapped ciphertext fails to decrypt.
- Folder names are encrypted the same way with the account key.
3. Sign-in, sessions and two-step verification
- Before sign-in the client asks for your salt and settings. For an unknown address the server answers with a stable fake salt, so this step does not reveal whether an account exists. Wrong passphrases and unknown accounts get the same answer.
- New devices must enter a 6-digit code, valid 10 minutes, sent by e-mail, or by WhatsApp if you chose that. When two-step verification is on, the authenticator code is asked instead, and signing in with your Google account in the app does not need the e-mailed code. We e-mail you about new sign-ins.
- Two-step verification (TOTP, RFC 6238) is optional. Its secret is stored on the server, encrypted with a server key, because the server must check your codes. The authenticator secrets you keep inside your vault are end-to-end encrypted like every entry.
- Access tokens last 15 minutes. Refresh tokens rotate; reusing an old one ends that whole chain of sessions and e-mails you.
- Rate limits, progressive delays and temporary locks slow down guessing. Sensitive changes (passphrase, recovery key, two-step verification, phone number, account deletion) ask again for your passphrase and, if on, your two-step code.
- Changing your passphrase derives new keys with a new salt, re-wraps the account key and signs out every other session.
4. Devices
- Each device keeps an encrypted local copy, so the vault opens offline.
- On Android, fingerprint or face unlock releases the account key through a key held in the Android Keystore. That key is invalidated when the enrolled biometrics change.
- The app locks after inactivity, blocks screenshots of the vault and clears copied passwords from the clipboard after 30 seconds.
- You can see and remove devices at any time. Removing a device ends its sessions at once. An account can have at most 3 phones.
- In the Web Vault, «Remember this browser» keeps the encrypted vault in that browser so only your passphrase is needed next time; use it only on your own computer.
5. Sync
- The server keeps a revision number per account. A device asks for everything changed since its last revision and gets encrypted rows only.
- A write is accepted only if it was based on the entry's current revision. Otherwise the device merges the change field by field; when both sides changed the same field it keeps the server's version and saves yours as a «conflict copy». Nothing is silently overwritten.
- Edits made offline are queued encrypted on the device and sent in order later. Deleted entries are kept as markers for 90 days so every device learns about the deletion.
6. Recovery key
- At sign-up the app creates a 32-byte recovery key, shows it once as 52 characters in groups of four, and asks you to retype two groups to confirm you saved it.
- It derives its own encryption and sign-in keys. The server keeps only a hash of its proof, like the passphrase proof.
- If you forget your passphrase, the recovery key plus a code sent to your e-mail let your device unwrap the account key and set a new passphrase.
- There is no other way back: no key escrow, no server-side decryption, no support override.
7. Sharing
Sharing between users is not available. Each account gets an X25519 key pair at sign-up, with the private key wrapped by the account key, so sharing can be added later without changing how entries are encrypted.
8. What the server stores and sees
Stored but unreadable to us: your entries and folder names, the wrapped account key, the wrapped private key, and entry keys.
Visible to us, because the service needs it:
- your e-mail address, language, and account creation and verification dates; a keyed hash of the address, kept also after you delete your account, so the free period and one-per-person discounts are given only once (and, with their dates, for each deletion request made for it on this website, until 180 days after the request is completed or cancelled);
- your phone number, only if you add one;
- while a code waits to be used: where it was sent (your e-mail address or phone number, and on a number change the number it replaces) and a hash of the code, deleted a day after the code expires;
- your Google account identifier, if you use «Continue with Google» in the app;
- your Apple identifier, only if you use Sign in with Apple (on iPhone, when available);
- device names (for example the phone model, or a name you give), platform, app version, a random install identifier, sign-in times and last activity;
- a security log of sign-ins, failed attempts (also someone else's, stored with the account they targeted) and security changes: the time, the event, a non-secret detail, the device identifier when known and the full IP address, and for sign-ins a keyed hash of the install identifier; kept up to 180 days, also after you delete your account. You can read the last 90 days in the app's Security activity, with shortened addresses. Web server logs are kept up to 15 days;
- the number of encrypted entries and folders, their padded sizes and when each was created, changed and deleted;
- your Argon2id salt and settings, the hashes of your sign-in and recovery proofs, your public key, and your two-step secret (encrypted with a server key);
- copies of the e-mails we send you (the address, the kind of message and its details), kept 30 days, also after you delete your account (support notices are deleted with it); one-time codes are removed from them once sent;
- your notification choices (product news, free-period reminders);
- your subscription status and your Google Play purchase records (product and plan, status and its history, dates, renewal, billing country or region, cancellation reason, test flag, offer details, and one-way hashes of the purchase token and order number), and the offers and discount codes you were shown or used; kept after you delete your account, no longer linked to it;
- the text of support requests you write to us, which is not end-to-end encrypted;
- what CodeMind support does on your account, by whom and with the reason given, kept with no time limit, also after you delete your account;
- for about 2 days, counters against abuse that hold the e-mail address, IP address or phone number they count.
Details and retention: Privacy Policy.
9. Server operations
- Every connection uses TLS (HTTPS with HSTS). The Web Vault runs under a strict Content Security Policy: only our own scripts, no third-party code, never framed.
- Every database query is limited to the signed-in account; automated tests check that one account cannot reach another's data.
- Server logs hold no request bodies or tokens, and e-mail addresses in them are hashed.
- Nightly database backups are encrypted to a public key whose private half is kept off the server, so the server cannot read them. They are kept 30 days, so deleted data leaves the backups within 30 days. Restoring them has been tested.
10. Limits
We state these plainly so you can judge the design yourself.
- A malicious or compromised server cannot read your vault, but it could withhold data, serve an older version of it, hide entries or stop the service. There is no signature over the whole vault yet that would let your devices detect this.
- Trust in the code you run. The Web Vault's code is delivered by our server on each visit, so a compromised server could deliver modified code. App and extension updates come through the stores. Our source code is not public, so you cannot inspect it yourself today.
- Offline guessing. Someone with a copy of our database could try passphrase guesses offline, at the cost of one Argon2id run (64 MiB) per guess. A long, unique passphrase is the real defence; the app requires at least 12 characters.
- Changing your passphrase does not replace the account key; it only wraps it again. Someone who already obtained your account key is not locked out by a passphrase change.
- Metadata listed in section 8 is visible to us.
- Your device. Malware on your phone or computer, or someone using it while the vault is unlocked, can see what you see.
- Autofill in browsers relies on the web address the browser reports to Android or to the extension.
- Losing both your passphrase and your recovery key means the vault cannot be recovered by anyone.
- No independent audit or certification has been done yet. If one is, we will link it here.
Found a problem? See our vulnerability disclosure policy. We will update this document when the design changes.