Lockstone Get it on Google Play

Describes Lockstone 1.1.1

How Lockstone protects your files

Last checked: 2026-11-07

This page explains, in plain terms and then in technical ones, how Lockstone encrypts your vault, how you get back in if you forget your pattern, and what it can't protect against. It describes what the app's code does today. We update it whenever the app changes.

The short version

From your pattern to your files

  1. Your pattern becomes a key. Lockstone runs your pattern through Argon2id with 64 MiB of memory, 3 passes and 1 lane (m = 64 MiB, t = 3, p = 1) and a random salt. That makes every guess slow and expensive.
  2. That key unwraps the vault key. Each vault has its own random 256-bit master key. It's stored only wrapped with AES-256-GCM under the key from step 1. Changing your pattern re-wraps this one record; your files are never re-encrypted.
  3. The record is sealed by the phone. That wrapped record is encrypted again with an AES-256-GCM key held in the Android Keystore, using StrongBox secure hardware when the phone has it. The Keystore key can't be exported, so the record can only be opened on this phone.
  4. Files are encrypted in segments. Every photo, video, document and thumbnail is encrypted with AES-256-GCM in streaming mode, in 1 MiB segments, using Google's Tink library (AES-GCM-HKDF streaming, with a key derived per file from the vault key). Each segment is authenticated before it's used, so tampering or truncation is detected.
  5. Names, dates and albums are encrypted too. Each item's details (file name, dates, albums, tags) live in a separate encrypted record, padded to fixed sizes. Files are stored under random names, so the folder reveals no names.

Photos and videos are decrypted into memory to show them; Lockstone doesn't write a decrypted copy to storage to view it. Screenshots and the recent-apps preview are blocked by default.

Wrong guesses

After 4 wrong patterns, Lockstone makes you wait 30 seconds, doubling with each miss up to an hour. Each attempt also costs the full Argon2id work. If you turn on break-in photos (off by default), the front camera takes a photo of anyone who guesses wrong, only while Lockstone's unlock screen is showing; Android shows its normal camera-in-use indicator, and the photo is encrypted so only your main vault can view it.

If you forget your pattern

Every vault gets a recovery key at setup: a random 128-bit key, shown when you ask as 12 recovery words. It opens the same vault your pattern does. There are three ways to keep it:

On this phone, the recovery key opens your vault directly. On a new or reset phone, the key works together with your encrypted backup file: install Lockstone, choose Restore your vault, pick the file, and the key opens it. The key on its own holds no photos.

If you forget your pattern and don't have your recovery words or recovery kit, your files are lost. Nobody can recover them, including us. We never have the key.

Reset with your phone's screen lock

With automatic recovery on, you can also choose to reset a forgotten pattern with your phone's screen lock: tap Forgot?, confirm your phone's PIN, pattern or password, and set a new Lockstone pattern, no words needed. In version 1.1.1 this reset is available whenever automatic recovery is on, so anyone who knows your phone's screen lock could use Forgot? to set a new Lockstone pattern. If that matters to you, turn automatic recovery off in Settings > Recovery and keep your 12 recovery words or printed kit instead. An update now in Google Play review (1.1.2) makes this reset a separate opt-in setting that's off by default. Without automatic recovery, your recovery words or kit are the way back, and without them a forgotten pattern means the files in that vault are lost.

Know the trade-off. When it's on, your phone's screen lock becomes a second way into your main vault: anyone who knows your phone's PIN could use Forgot? to set a new Lockstone pattern and open your vault. Leave it off if anyone else knows your screen lock or could make you unlock your phone. Version 1.1.1 and earlier have it on whenever automatic recovery is on; there, turning automatic recovery off in Settings > Recovery is the way to close it. Turning automatic recovery off also removes the saved key from the phone and from your Google backup going forward. Setting a duress pattern turns both off; a decoy pattern on its own doesn't.

Backups

Decoy vault

A second pattern can open a separate decoy vault with its own key. On disk, Lockstone always keeps the same number of vault key records, all the same size; unused ones are filled with random data. Your real vault goes into a random position, and every unlock does the same amount of work for each position, so the records don't show which one is real, which is a decoy and which are empty. Some optional features leave their own traces (for example, that fingerprint unlock or break-in photos are turned on), and a person who knows Lockstone well could notice those.

What Lockstone doesn't protect against

Honest limits

We describe what the code does as accurately as we can and update this page when it changes. No app can protect a phone that's already compromised, so keep your phone's screen lock on and your software up to date.

Report a security problem

Found something wrong, on this page or in the app? Email lockstone.support@proton.me. We'll answer, fix it, and credit you publicly if you'd like. Please don't include your pattern or recovery words in any message.

See also: check Lockstone's permissions yourself and the FAQ.

Get Lockstone

No account. No ads. No tracking. Free on Google Play.

Get it on Google PlayAndroid 8.0 or newer.
Get it on Google PlayFree. No account.