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
- Everything in your vault (photos, videos, documents, notes, and their names, dates and albums) is encrypted on your phone.
- Your pattern is never stored. It's turned into a key with a deliberately slow, memory-hungry function, and that key unlocks your vault's master key.
- The vault's key record is sealed again by a key inside your phone's secure hardware, so copying Lockstone's files off the phone gives nobody anything to guess against.
- Lockstone has no internet permission, no Lockstone account and no server. We never have your files or your keys.
- If you forget your pattern, a 12-word recovery key gets you back in. Without it, nobody can recover your files, including us.
From your pattern to your files
- 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.
- 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.
- 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.
- 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.
- 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:
- Automatic recovery (optional, on unless you turn it off). Lockstone saves the recovery key with Android Block Store. Where your phone supports it (a screen lock is set), Google includes it in your phone's backup end-to-end encrypted with your screen lock, so Google can't read it, and it comes back on a new phone signed in to the same Google account. Without a screen lock it's kept on the phone only. Automatic recovery is what lets the key come back on a new phone; it doesn't on its own let anyone reset your pattern.
- Your 12 words, which you can view in Settings > Recovery and type in on the Forgot? screen.
- A printable recovery kit: a one-page PDF with your words, saved wherever you choose. It's meant for paper, so it isn't encrypted; print it and delete the file.
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
- Backups are encrypted inside Lockstone before they're saved to a folder you pick with Android's folder picker: on the phone, an SD card, Google Drive or anywhere else it offers. Lockstone has no internet permission; if you pick a Drive folder, the Drive app does the uploading.
- Each backup file is sealed to your vault's recovery key, stretched with Argon2id (64 MiB, t = 3, p = 1) with a fresh random salt per file, and encrypted with the same Tink AES-256-GCM streaming format in 1 MiB segments.
- Every backup is read back and fully checked after it's written. Automatic backups keep the last two good copies.
- Without the key, a backup file shows only that it's a Lockstone backup and roughly how big it is. Names, dates, albums and contents are encrypted.
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
- A compromised phone. If someone has full control of your phone (malware, a rooted or exploited device), they may be able to read what's on screen or in memory while the vault is open. No app can fix that.
- Someone who knows or watches your pattern. Shoulder-surfing works on any lock. Draw your pattern out of sight.
- Your phone's screen lock, if you turned on reset with your phone's screen lock (in 1.1.1, whenever automatic recovery is on; see above).
- Your fingerprint, if you turn on fingerprint unlock. It's optional and only for the main vault.
- Copies outside the vault. Originals still in your gallery or cloud, exported files and printed recovery kits are not encrypted by Lockstone.
- Every bit of metadata. Location and camera details are removed from common photo and video formats on import, but some formats can't be cleaned; the app tells you when that happens.
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.
