How encryption works
ownmem is zero-knowledge. Your passphrase derives keys in the browser with Argon2id and HKDF, a random data key encrypts your vault with AES-256-GCM, and the server stores only ciphertext.
ownmem is zero-knowledge: keys are created and used only in your browser. Our servers store ciphertext and the minimum metadata needed to run the service. We use standard, well-reviewed primitives — WebCrypto (AES-256-GCM, HKDF-SHA256), Argon2id via hash-wasm, and @scure/bip39 for the recovery phrase. We don't invent our own cryptography.
Key hierarchy
passphrase ─Argon2id(salt)─► master key ─HKDF─► KEK (wraps the DEK)
└HKDF─► authKey (login proof)
recovery phrase (12 words) ─HKDF─► recovery KEK (wraps a 2nd copy of the DEK)
└HKDF─► recovery auth key
DEK = 32 random bytes, generated in your browser- Argon2id turns your passphrase and a random salt into a master key (64 MiB memory, 3 passes), which makes guessing passphrases slow and expensive.
- HKDF splits the master key into two independent keys:
- the KEK (key-encryption key), which never leaves your browser;
- the authKey, which is what the server sees as your "password" (stored hashed). It can't be turned back into the KEK.
- The DEK (data-encryption key) is 32 random bytes made in your browser. It encrypts your vault. The server only stores it wrapped (encrypted) twice: once with the KEK, once with the recovery KEK.
Because the vault is encrypted with the DEK, changing or resetting your passphrase only re-wraps the DEK; your data doesn't need to be re-encrypted.
How your vault is stored
- In your browser: each file is sealed with AES-GCM in IndexedDB, so the local copy is encrypted at rest too.
- In the cloud: on sync, your whole vault (memories and chat history) is zipped, padded to a multiple of 64 KB so the size reveals little about the content, and encrypted with AES-256-GCM using the DEK. Only this blob is uploaded. We keep the last 3 versions.
- Locking the vault wipes the DEK, decrypted files and the search index from memory.
What the server can and can't see
| The server can see | The server can't see |
|---|---|
| Your email address | Your passphrase or recovery phrase |
| Wrapped (encrypted) DEKs, salt and KDF settings | The DEK or KEKs |
| A hash of your authKey | Your memory files |
| Encrypted vault size (padded), version and timestamps | Your chat history |
| Credit ledger: cost and model of each AI request, without content | File names or folder structure |
| Technical logs (error codes, request IDs), never message content |
What reaches AI providers
To answer you, a model has to read text. When you send a message, your browser sends to ownmem's chat endpoint, which forwards it to the model through OpenRouter:
- the current conversation (not your other chats);
- your
/memories/resident.md(up to 4,000 characters), as part of the system prompt; - the results of tool calls in this conversation — for example, the few matching lines
memory_searchreturned, or a file the assistant opened.
Nothing else from your vault is sent. This content passes through our server in transit only; we don't store or log it. The model provider processes it under its own policies. You can always check exactly what was sent: each tool call is shown inline, and What was sent shows the full last request.
Diagnostic reports
If you send a diagnostic report and tick Include this conversation (off by default), that chat's messages are sent in plain text and kept for up to 30 days. This is the only case where your content is stored on our servers unencrypted, and only by your explicit choice.
Limits of this design
- If someone steals our database, they could try to guess your passphrase offline, at Argon2id cost. Use a long passphrase.
- Anyone with access to your unlocked browser can read your vault. Lock it or log out on shared devices.
See also: Privacy Policy.
Getting started
Create an ownmem account, choose a passphrase, save your 12-word recovery phrase and start chatting with your encrypted memory.
Recovery phrase & lost passphrase
Your 12-word recovery phrase is the only way to reset a forgotten ownmem passphrase. If you lose both, nobody can decrypt your data.