Security & Cryptography

How Mnemo protects your memories — what it defends against, how the keys work, and where the limits are.

Last reviewed October 22, 2026

Threat Model

Mnemo is designed to protect against: a server or hosting provider reading your data (there is no server-side copy); someone obtaining your exported backup file or a copy of your browser storage without your password; network observers (everything is local and served over HTTPS); and curious third parties (no analytics, ads, or accounts).

It cannot protect against: malware or a malicious browser extension on your device; someone using your device while the vault is unlocked; a weak password that is easy to guess; or loss of your password and recovery key.

Key Hierarchy

  1. When you create a vault, Mnemo generates a random 256-bit master key with the browser’s cryptographic random number generator.
  2. Your password is stretched with PBKDF2-SHA256 (600,000 iterations, 16-byte random salt) into a key-encryption key (KEK) that is non-extractable.
  3. The KEK encrypts (“wraps”) the master key with AES-256-GCM. Only this wrapped key is stored — never your password, never the plain master key.
  4. The master key encrypts every memory, every embedding and every saved chat, each with a fresh 96-bit IV.

Because data is encrypted with the master key rather than the password, changing your password only re-wraps 32 bytes. It is instant, cannot be interrupted into corruption, and a previously exported Heir package remains valid.

Algorithms At A Glance

PurposePrimitiveParameters
Password → KeyPBKDF2-HMAC-SHA256600,000 iterations, 128-bit salt, NFKC-normalised password.
Data EncryptionAES-GCM256-bit key, 96-bit random IV per record.
Key WrappingAES-GCM with domain-separation AADAAD mnemo-master-v2
Recovery Key → KEKHKDF-SHA256160-bit random recovery key.
Heir Key AgreementECDH P-256 + HKDF-SHA256 + AES-GCMEphemeral sender key per package.
Heir Identity FilePBKDF2 + AES-GCMPassphrase-sealed private key.
Randomnesscrypto.getRandomValuesUnbiased rejection sampling for generated passwords.

All cryptography uses the browser’s native Web Crypto API. Mnemo does not bundle its own cipher implementations.

Search Index And Chats

Embedding vectors can reveal what a text is about, so they are encrypted with the master key exactly like the text itself. Saved chat history is encrypted too. The decrypted copy exists only in memory while the vault is unlocked and is cleared on lock.

Recovery Key

At setup Mnemo shows a 160-bit recovery key (32 characters, grouped for readability) once. A second wrapped copy of the master key — protected by a key derived from the recovery key — is stored next to the password-wrapped one. Anyone holding the recovery key and your vault data can open the vault, so store it offline. You can generate a new one in Settings, which invalidates the old key.

Heir Mode

Your heir generates an ECDH P-256 identity locally (the private key is sealed with a passphrase). You enter their public key; Mnemo wraps your master key to it. The package unlocks when the later of your fixed transfer date and your last check-in plus the inactivity interval has passed.

Be clear about what the timer is. The key is cryptographically wrapped to the heir from the moment the package is created; the unlock date is enforced by the heir’s app using the heir’s device clock. A technical heir could bypass the delay. If that matters, hand the package to a trusted third party and give your heir the identity file later.

Application Hardening

  • No server-side data. PHP only serves static files and headers; there are no sessions, cookies or databases.
  • Strict Content-Security-Policy on the website (no third-party hosts at all) and a tightly scoped policy for the app. No inline scripts or inline event handlers anywhere.
  • Output escaping for all user content, and only http(s) links are made clickable.
  • HSTS, X-Frame-Options: DENY, nosniff, no-referrer and a locked-down Permissions-Policy.
  • Atomic storage operations for backup import and key changes, so interruptions cannot leave a half-written vault.

Supply Chain

Mnemo has no build step and no package manager on the server. The AI features load three pinned libraries from jsDelivr (Transformers.js, WebLLM, PDF.js) and model weights from Hugging Face, only when you use those features. Versions are pinned in the source so updates are deliberate.

Known Limitations

  • Library code loaded from a CDN runs with the app’s privileges. We pin versions and restrict hosts via CSP, but we do not yet self-host those libraries or use Subresource Integrity for dynamically imported modules. Self-hosting is on our list.
  • Metadata such as record count, creation time, content type and word count is stored unencrypted to enable sorting and listings. Content is not.
  • JavaScript cannot guarantee memory is wiped; the decrypted vault is held in memory while unlocked. Use the auto-lock timer.
  • Browsers may evict local storage under pressure. Export backups.
  • Mnemo has not undergone an independent third-party security audit.

Reporting A Vulnerability

Email mnemo@lyfmail.com with a description and reproduction steps. Please allow reasonable time to fix an issue before public disclosure. We appreciate responsible reports and will credit you if you wish.

Install Mnemo

Put your private vault on this device — it works offline, like a native app.

Checking your device…
Device check
Open in browser

This check runs entirely in your browser. Nothing is uploaded.