How your data is protected
The security design of ViauMarky Password, in plain terms and in full detail.
In short: your private vaults are encrypted on your own devices with keys made from two secrets, your master password and your Secret Key. Neither ever reaches us. Our sync service stores only ciphertext, so it can’t read your data, and a stolen copy of it can’t be used to guess your master password.
Two kinds of vaults
The app keeps two kinds of vaults side by side. Everything else on this page is about your private vaults.
| Your private vaults | The ViauMarky vault | |
|---|---|---|
| Who it’s for | Your own logins, cards, notes and identities | The agency’s shared client and agency logins |
| Where it’s stored | The ViauMarky Password sync service, on Cloudflare | The business’s ViauMarky dashboard (its own server and database) |
| Who can read it | Only you, on your own devices. The server stores ciphertext it can’t decrypt. | Signed-in ViauMarky staff, following ViauMarky’s rules (admin-only entries, every reveal recorded in Activity) |
| Encryption | End to end, with your master password and Secret Key, on your device | On the ViauMarky server with its own encryption key, over HTTPS |
The ViauMarky vault keeps the security model of the ViauMarky dashboard. The app adds a Face ID lock in front of it and never stores revealed ViauMarky passwords on your device.
Two secrets: master password and Secret Key
Every account has:
- a master password that you choose and remember, and
- a Secret Key that the app makes when you create your account. It never leaves your devices and is never sent to us. It’s kept in your device’s Keychain and printed on your Emergency Kit.
The Secret Key adds about 128 bits of randomness, so even a full copy of our database can’t be used to guess master passwords offline. You need both to sign in on a new device. Neither can be recovered by us: losing both your Emergency Kit and every signed-in device means losing the vault.
Secret Key format
VM1-XXXXXX-XXXXX-XXXXX-XXXXX-XXXXX: the version VM1 and 26 characters picked uniformly at random from the 30-character alphabet 23456789ABCDEFGHJKLMNPQRSTVWXYZ, which leaves out characters that are easy to confuse (0, 1, I, L, O, U). That’s 26 × log2(30) ≈ 127.6 bits. When you type it in, dashes, spaces and the VM1 prefix are ignored, and letters don’t have to be capitals.
How keys are made
All of this happens on your device. HKDF is HKDF-SHA256 (RFC 5869) and PBKDF2 is PBKDF2-HMAC-SHA256.
password = your master password (UTF-8, trimmed, Unicode NFKD)
salt = 16 random bytes made when the account is created
iterations = 650,000
p = PBKDF2(password, salt, iterations, 32 bytes)
s = HKDF(the 26 Secret Key characters, salt "VM1", info "ViauMarky Password secret key")
muk = p XOR s (the master unlock key, only ever in memory)
auth_key = HKDF(muk, info "ViauMarky Password auth")
unlock_key = HKDF(muk, info "ViauMarky Password unlock")
auth_keyproves to the server that you know both secrets. The server stores only its SHA-256 hash and compares in constant time. Because it depends on your Secret Key, that hash can’t be brute-forced.unlock_keynever leaves your device. It decrypts your account key.
How your data is encrypted
- Your account key is 32 random bytes, the root of everything in your account. It’s stored encrypted with your
unlock_key. - An X25519 key pair is made for sharing vaults with other people later. The private key is encrypted with your account key.
- Each vault has its own random 32-byte key, encrypted with your account key. The vault’s name, icon, colour and description are encrypted with the vault key.
- Each item is encrypted as a whole with its vault’s key.
Encryption is AES-256-GCM with a random 96-bit nonce for every value. Each item is bound to its vault and item IDs, so the server can’t swap encrypted items between vaults or items without decryption failing. Moving an item to another vault re-encrypts it with that vault’s key.
Changing your master password, or making a new Secret Key, makes a new unlock_key (with a fresh salt) and re-encrypts only your account key. Your vaults and items don’t need to change.
On your devices
- Your Secret Key, your sync session and your ViauMarky sign-in are kept in the Keychain, available only on that device (shared with the app’s AutoFill extension) and never synced to iCloud Keychain.
- For Face ID or Touch ID unlock, your account key is kept in the Keychain behind biometrics and your passcode. Adding or removing a face or fingerprint, or removing the passcode, turns it off until you enter your master password again.
- The offline copy of your vaults is the server’s ciphertext, unchanged, protected by your device’s data protection. Decrypted items exist only in memory while the app is unlocked.
- The app locks after the idle time you choose (10 minutes unless you change it), when your device locks, and if you like, when you switch away from it. Locking drops every key and decrypted item from memory.
- Copied passwords stay on that device only (not Universal Clipboard) and are cleared after a while (90 seconds unless you change it).
- Watchtower checks strength, reuse, age and
http://links on your device. The optional breach check uses Have I Been Pwned with k-anonymity: only the first 5 characters of each password’s SHA-1 hash are sent. It’s off until you turn it on.
On our servers
- For each account we store: your email address and name, the key-derivation salt and iteration count, the SHA-256 hash of your
auth_key, your encrypted keys, and your encrypted vaults and items with their revision numbers. Nothing we store can decrypt anything. - Sessions are random 256-bit tokens, stored only as hashes, that end after 90 days without use. Every signed-in device is listed in the app and can be signed out from another device. Changing your master password signs out every other device.
- When someone looks up an address that has no account, the sign-in screen gets a made-up but consistent answer, so it doesn’t reveal who has an account.
- Sign-in attempts are rate limited per email address and per IP address, and we email you when a new device signs in.
- Deleting your account deletes everything for it immediately.
What this doesn’t protect against
- A compromised, unlocked device (malware, or a jailbroken phone) can read what the app can read.
- Someone who knows your master password and has a device where your Secret Key is saved.
- The ViauMarky vault is protected by the ViauMarky server, not end to end.
Found a security problem? Please email support@viaumarky.com.