OBSCURA Keep

What Keep protects against, and what it does not

Keep encrypts your papers, passwords and codes on your own device before anything is stored. That stops a long list of things. It cannot stop everything, and a security product that does not say where it stops is asking to be trusted further than it should be. This page says both, in plain words. Where it and Keep’s own page ever disagree, this page is the careful one.

What it protects against

What it does not protect against

How it works, in one table

The cryptographic parameters of a Keep vault, as the playbook’s D.5.2 sets them out. The same table is the description of how the encryption is built, kept for anyone who asks, an authority included. The full detail, part by part, is below it.

ItemValue
Key derivationArgon2id in WebAssembly. On a desktop 64 MiB, 3 passes, 1 lane; on a phone or tablet tuned at creation to stay under a second there, never below 19 MiB and 2 passes (the OWASP minimum). The parameters are written in the vault’s header.
FallbackPBKDF2-HMAC-SHA-256 at 600,000 iterations, from the browser’s own WebCrypto, only where the WebAssembly cannot load. The header records which was used.
Salt16 random bytes for each vault, from crypto.getRandomValues.
Key hierarchyPassphrase, then Argon2id, to a 256-bit key that wraps a random 256-bit vault key with AES-256-GCM. Changing the passphrase wraps the vault key again; nothing else is re-encrypted.
Item encryptionAES-256-GCM through WebCrypto, a fresh random 96-bit IV every time, never reused. The additional authenticated data is the format version, the vault’s id, and the item’s kind and id.
Key handlingKeys are imported with extractable: false once unwrapped, held in memory only, and dropped when the vault locks.
Auto-lockAfter 15 minutes idle (you can choose 1 to 60), and when the tab is closed.
UnlockingPasting and password managers are allowed in the passphrase field (WCAG 3.3.8).
PasskeyOptional, as an extra way to unlock where the browser supports WebAuthn’s PRF extension. A passphrase is still needed to create the vault.
Post-quantumNot used. A hybrid with ML-KEM will be considered for sending encrypted, once a vetted WebAssembly library exists.
RecoveryNone by anybody else. Before a vault is made: “If you forget this passphrase, nobody can open this vault, obscuraOS included.”, with an unticked box, “I understand”, to go on. A recovery key you make yourself is the only other way in.

The details

PartWhat is used
Passphrase to keyArgon2id (version 1.3, the reference code compiled to WebAssembly by hash-wasm 4.12.0), 64 MiB, 3 passes, 1 lane, a random 16-byte salt, 32 bytes out. On a phone or tablet, the most that stays under a second there, never under 19 MiB and 2 passes (OWASP’s minimum). Where WebAssembly is switched off, PBKDF2-HMAC-SHA-256 at 600,000 iterations. The parameters are stored with the Keep, so they can be raised for new passphrases without breaking old Keeps.
The vault key32 random bytes from the browser’s generator, made once. Wrapped with AES-256-GCM under the passphrase’s key, and again under the recovery key’s, each with the Keep’s id and the slot’s name as additional data. Changing the passphrase wraps it again; nothing else is re-encrypted.
Recovery key160 random bits, stretched with HKDF-SHA-256 and a random salt (it is already random, so it needs no Argon2), written as 32 characters of Crockford base32 and a 4-character check.
PasskeyOptional. WebAuthn’s PRF extension, with user verification required: the authenticator’s 32 bytes for a random 32-byte salt go through HKDF-SHA-256, salted with the Keep’s id and bound to the credential, to a key that wraps the vault key with AES-256-GCM in a slot of its own. Nothing is sent to a server; there is none. Adding one asks for the passphrase, which is checked before the authenticator is asked.
DataThe data key comes from the vault key by HKDF-SHA-256. Every stored part (the index, each document, each thumbnail) is AES-256-GCM with a fresh random 96-bit IV and a 128-bit tag, the Keep’s id, the part’s kind and its id as additional data.
StorageThe browser’s private file system for this site (an IndexedDB database where a page cannot write those files). Nothing unencrypted is written to local storage, the database or the offline cache.
PackagesThe same format, with a fresh vault key and a passphrase of their own, opened read-only at /keep-open.
BackupsOne file, .okeep or .obscura-vault (the same header and sealed parts as JSON), opened in Keep, or read-only and with no plan at /keep-open, which also reads the Keep on this device.
Sent as a linkA package small enough is carried after the # of a link to /keep-open; a browser does not send that part to any server, and the page takes it out of the address on arrival. The passphrase goes another way.
From the other applicationsA P-256 key pair of the Keep’s own, the private half in the encrypted index, the public half in the header. Another application seals what it puts in to that key (a fresh key pair each time, ECDH, HKDF-SHA-256, AES-256-GCM with the Keep’s id and the thing’s id as additional data), and Keep files it when next unlocked.
Two-step codesTOTP, RFC 6238, with HMAC from WebCrypto.
The browser extensionA random 32-byte key of the extension’s own, kept in the encrypted index and sealed for the extension with the data key; the logins sealed with it, AES-256-GCM as above. The extension opens them with Keep’s own code: the passphrase through Argon2id with the Keep’s parameters, the vault key unwrapped, the data key by HKDF, then its key, then the logins. It asks the browser for no access to any website until you press its button on one.
Travel modeA new 32-byte vault key; the items that travel and their files decrypted with the old key and encrypted again with the new, AES-256-GCM as above; the header has the travel passphrase’s slot alone; every other part of the Keep, and any other Keep not kept, removed from the private file system or IndexedDB, once a backup file of each has been saved. Coming home puts the backup back over it and merges in what changed while away.
Shares that stopThe expiry and the single opening are in the package’s header and in the additional data its key is wrapped with (“pass|limits|until=…|once”), so a header with either changed does not unwrap.
Moving by QR codeECDH on P-256 with keys made for one move; HKDF-SHA-256, salted with both public keys, to an AES-256-GCM key and, apart, a six-digit check; the item compressed and sealed, and shown as up to ten codes in turn.
Reading a KeePass databaseKDBX 4: SHA-256 of the master password, Argon2d, Argon2id or AES-KDF as the file says (held within real costs), the header’s HMAC checked first, each block’s HMAC before its bytes are used, AES-256-CBC or ChaCha20, then the protected values revealed with ChaCha20. On the device; the file is not kept.

Each of these is checked by the site’s own tests: published test vectors for AES-GCM, HKDF, PBKDF2, Argon2id, TOTP, ChaCha20 and AES-256; KeePass databases written by another program; travel mode’s removal looked for in the browser’s storage itself; a share with its limits edited out refused; a wrong passphrase refused; a tampered part caught; a passphrase change, a recovery key and a passkey (through a virtual authenticator) that still open the same data; and a search of every kind of browser storage, after a known secret is added, that finds no trace of it. For the site as a whole, see the threat model for every tool and /trust.