Offline AES-256 Encryption

Every document, photo, and note you store in UnderKey is encrypted with AES-256-GCM before it touches your device's storage. Your unlock pattern derives the encryption key, which exists only in memory and is never written to disk. Because there are no servers and no cloud sync, there's no remote copy for anyone to hack or subpoena.

How it works

When you create a vault by drawing an unlock pattern:

  1. Your pattern is hashed using PBKDF2 (a key derivation function) with a random salt unique to that vault. This produces a 256-bit encryption key.
  2. The key is used to encrypt and decrypt your documents with AES-256 in GCM mode (Galois/Counter Mode), which provides both confidentiality and authenticity.
  3. The key exists only in memory. When you lock the app or leave it, the key is erased. It's never stored on disk, never uploaded, and never cached.
  4. The pattern itself is never stored. UnderKey stores only the salt and an encrypted test value. When you unlock, your pattern is hashed again, and if the hash matches, the vault unlocks. If it doesn't, the vault stays locked.

This means the only way to decrypt your documents is to know the unlock pattern. If you forget it, the documents are permanently inaccessible — including to us, because we don't have the key and we never saw your documents.

What AES-256-GCM means

What stays on your device

Everything:

Nothing is ever uploaded. UnderKey doesn't have servers to upload to.

What this means for privacy

Limits and trade-offs

For most people, these trade-offs are worth it: the privacy and security you gain far outweigh the inconvenience. For documents you'd panic about if they leaked — passports, IDs, seed phrases — offline encryption is the only option that truly keeps them under your control.

Related guides