How Lockspeare protects your photos
Lockspeare encrypts every photo and video on your phone. This page explains exactly how, including what it cannot protect against, so you can judge it for yourself.
The short version
- Every photo and video is encrypted on your phone with AES-256-GCM before it is stored.
- The key that opens your vault is protected twice: by your PIN or pattern, and by a hardware-backed key in Android Keystore that never leaves your phone.
- A copy of your phone’s storage contains only encrypted data. Without your phone’s secure hardware, nobody can try PINs or patterns against it.
- Your 12-word recovery phrase is the only way to open a vault on another phone or from a backup.
- Lockspeare has no servers and no accounts. We never receive your files, your PIN or pattern, or your keys.
What is encrypted
Everything you put in a vault: photos, videos, notes, documents and any other files, together with their thumbnails, original file names, dates and albums. A note is stored as a text file and encrypted like any other file. PDFs open inside the app from a copy decrypted in memory only (Android 11 and newer); nothing decrypted is written to storage.
Each file is encrypted with its own key, derived from your vault’s master key. Large files are encrypted in 1 MB segments, each with its own integrity check, so videos can be played without decrypting the whole file at once, and any change to an encrypted file is detected. We use Google’s Tink library for this, rather than writing our own encryption.
Encrypted files are stored in Lockspeare’s private app storage with random names. Files from all your vaults sit in the same folder, so the folder does not show which vault a file belongs to.
How your PIN or pattern opens a vault
When you set up Lockspeare, you choose how to unlock it: a PIN of at least 6 digits (we recommend 10 or more), or a pattern on a 3×3 grid like your lock screen. PINs that are easy to guess are refused at any length: repeated digits, runs like 123456, PINs made of only two different digits, repeated or mirrored blocks, common keypad shapes and dates. Every vault on the phone uses the same kind of lock, so the lock screen gives nothing away.
Each vault has a random 256-bit master key, created on your phone. That key is never stored in readable form. It is stored in two locked forms:
Locked with your PIN or pattern, on this phone. Your PIN or pattern is turned into a key with Argon2id, an algorithm designed to make every guess slow and memory-hungry. The result is then encrypted again with a key held in Android Keystore, inside your phone’s secure hardware. That second key cannot be copied off the phone.
This matters because a PIN or pattern is short. On its own, it could be guessed quickly by a computer working on a copy of your files. Tying it to your phone’s hardware means guesses can only be made on your phone, and each one is slow.
Locked with your recovery phrase. When you create a vault, Lockspeare shows you 12 words, chosen at random from a standard list of 2,048 words. That gives about 128 bits of randomness, far beyond what anyone can guess. The phrase opens the vault if you forget your PIN or pattern, move to a new phone, or restore a backup.
You confirm a few of the words before the vault is ready. Write them down somewhere safe. We do not have a copy.
Changing your PIN or pattern. Settings > Unlock > Change PIN asks for the current PIN or pattern of the open vault first, so someone who finds your vault open can’t lock you out. The vault key is then locked again with the new one. The files and the recovery phrase don’t change, so your 12 words keep working.
Fingerprint unlock
Fingerprint unlock is optional and free (Settings > Unlock). You turn it on from inside the vault it should open, after typing that vault’s PIN or pattern again.
The app then locks that vault’s unlock key with a separate key in Android Keystore that only works after a strong fingerprint check (or a face unlock that Android rates as strong), every time it is used. Android deletes that key by itself when fingerprints are added to or removed from the phone. Your PIN or pattern still works as before, and the vault’s files don’t change.
Like your phone’s own lock screen, Lockspeare asks for the PIN or pattern again after a restart and 3 days after you last typed it. Fingerprint works for one vault at a time. A new PIN or pattern for that vault, or a change of fingerprints, turns it off, and the app tells you.
Anyone who can press your finger to the sensor can open that vault. If you use a decoy vault, the app suggests turning fingerprint on in the decoy and opening your real vault with its PIN or pattern.
Wrong tries
The first 5 wrong tries are free. After that, the lock screen makes you wait before each new try: 30 seconds, then 1 minute, 5 minutes, 15 minutes, and then 1 hour per try. The count is kept when you close the app or restart the phone, and goes back to zero when you unlock.
These pauses stop someone from guessing by hand. They are kept in the app’s own storage, so someone who has rooted the phone could get around them. Then only Argon2id slows them down, at about one second per guess on a typical phone. In the worst case, trying every PIN takes about 11 days for 6 digits, about 3 years for 8 digits and about 300 years for 10 digits. That is why the app recommends 10 or more.
Photo after wrong tries (Premium). If you turn it on (Settings > Unlock), the 2nd wrong PIN or pattern in a row on the lock screen makes Lockspeare take one photo with the front camera. There is no preview and no shutter sound, and Android shows its own camera indicator while it happens. It is never taken from the calculator disguise, where ordinary sums would count as tries. Because every vault is locked at that moment, the photo is encrypted with its own key in Android Keystore and kept in the app’s private storage, at most 3 at a time. The next time a vault is opened, you see the photo with the time and the number of tries, and choose to keep it in that vault or delete it.
Separate vaults and the decoy vault
Each PIN or pattern opens its own vault. You can use a second one for a decoy vault with harmless photos, in case someone ever pressures you to unlock the app.
Lockspeare always keeps the same number of vault slots on disk, whether you use one vault or several. Unused slots are filled with random data that looks the same as a real, encrypted vault. The app has no list of vaults. So neither the screen nor a copy of your files shows how many vaults you have.
One limit: to avoid overwriting a vault when you create a new one, the app keeps a note of which slots are taken, locked with your phone’s hardware key. Someone with full control of your unlocked phone could read that note and learn how many vaults exist, though not what is in them.
Backups
You can save a vault as one encrypted backup file (Settings > Back up this vault). It is free.
What is in the file. The vault’s files exactly as they are stored on your phone, already encrypted, plus the vault key locked with your recovery phrase. Nothing is decrypted to make the backup. The copy locked with your PIN or pattern is left out, because it only works with your phone’s hardware.
Who can open it. Only someone with your 12-word recovery phrase. Your PIN or pattern does not open it. Anyone who has the file can see its size and how many files it holds, but not what is in them. Back up your main vault: a decoy vault’s recovery phrase is never shown, so its backup cannot be opened.
Restoring. On a new phone, choose Restore from a backup on the first screen, pick the file and enter your 12 words, then choose a PIN or pattern. On a phone that already has Lockspeare, Settings > Restore a backup adds the vault. The words and every file in the backup are checked before anything on the phone changes, so a wrong word or a damaged file leaves the phone as it was.
A backup is a snapshot: make a new one after you add photos, and keep it off your phone, for example on a computer or in a cloud storage service.
From the second day, once a vault holds 10 or more items, the vault screen reminds you when it has no backup yet, or when its last backup is more than 30 days old and you have added items since. The date of the last backup is kept inside that vault’s encrypted index, so it says nothing about your other vaults.
Google Drive. Settings > Back up this vault > Save to Google Drive uploads the same encrypted backup file to a hidden app folder in your own Google Drive. It is optional and free. Lockspeare asks Google only for access to its own app folder, not your other Drive files, and you don’t sign in to Lockspeare. You can’t browse that folder in Drive; Drive’s settings (Manage apps) show its size and let you delete it. The two newest backups of each vault are kept: older ones of that vault are deleted only after a new upload has finished. To restore, choose Restore from a backup, then Choose from Google Drive, and enter your 12 words. Google can see how many backup files there are, their names (which contain the date), how big they are, when they were uploaded and which ones belong to the same vault, but not what is in them.
Android’s own automatic backup is turned off for Lockspeare. It could not restore the hardware-bound keys, so it would only copy data nobody can use.
While you use the app
- Screenshots, screen recordings and the preview in your recent apps are blocked.
- By default the vault locks as soon as you leave the app. In Settings > Auto-lock you can choose 1 or 5 minutes instead; during that time, anyone who opens the app sees the vault. Turning the screen off or tapping Lock always locks at once.
- Lock when face down (Settings > Auto-lock, free, off by default): while Lockspeare is on screen, turning the phone screen-down locks the vault at once. It uses the phone’s motion sensors, needs no permission and stores only the on/off choice. It also locks if you hold the phone above your face while lying down, because the screen faces the floor then too.
- You can change the app’s icon and name on your home screen to Calculator or Notes (Premium). This only makes the app less noticeable at a glance: Android’s app list in Settings and the share menu still show Lockspeare.
- Locking clears the keys and any decrypted previews from the app’s memory and temporary storage. Android apps run on a system that can make internal copies of memory, so we clear everything we control but cannot promise that no copy remains in memory until it is reused.
- Photos and videos you take with the camera inside Lockspeare go straight into the vault and never appear in your gallery, so cloud photo backups never see them. Photos are encrypted from memory. Android’s video recorder needs a file, so a video is written to Lockspeare’s private storage while you record, encrypted as soon as you stop, and the unencrypted file is deleted.
Moving photos in from your gallery
When you add a photo from your gallery, Lockspeare first encrypts it, then reopens the encrypted copy and checks that it matches the original. Only then does it offer to delete the original, through Android’s own confirmation dialog.
Two places are outside Lockspeare’s reach, and we remind you about both after every import:
- Your gallery’s trash. Many gallery apps keep deleted photos for about 30 days. Empty it to remove them for good.
- Cloud photo backups. If a photo was already backed up by a cloud photo service, that copy stays there until you delete it.
Taking photos out
Anything you take out of a vault is a plain, unencrypted copy that anyone and any app allowed to see your files can open. The app says so before it writes one.
- Export a decrypted copy (one item), Save to a folder (the items you selected) and Save everything to a folder (Settings, always free) write plain copies to a folder you choose. The items stay in the vault.
- Put back in gallery writes plain copies to a folder called Lockspeare in your gallery, or in Downloads for files that are not photos or videos. An item leaves the vault only after its copy has been written in full; if a copy fails, the item stays in the vault.
- Share a copy decrypts one item into Lockspeare’s private storage and hands it to the app you pick in Android’s share menu. Lockspeare deletes its copy the next time a vault is opened or the app starts. What the other app does with it is outside Lockspeare’s control.
- Save the encrypted file writes the stored file as it is, so you can check that it can’t be opened anywhere else.
What leaves your phone
- Nothing, by default. Lockspeare works fully offline.
- Backup files, only when you save one, to the place you choose. They hold only encrypted data.
- Google Drive, only when you save a backup there, and only encrypted files.
- A shared copy, only when you use Share a copy, to the app you pick, and unencrypted.
- Google Play, to process purchases.
There are no ads, no advertising IDs, no analytics libraries and no crash-reporting tools in the app, so it sends no crash reports. If your phone shares usage and diagnostics data with Google, Android itself may report app crashes to Google, as explained in the privacy policy.
What Lockspeare cannot protect against
Being honest about limits is part of security. Lockspeare does not protect against:
- Someone watching you enter your PIN or draw your pattern. Shield the screen.
- Someone pressing your finger to the sensor, if fingerprint unlock is on for that vault.
- A compromised phone while your vault is open. Malware with deep access to your phone, or a hacked operating system, can see what is on your screen.
- Someone with full control of your unlocked phone and unlimited time. They could try PINs or patterns on the phone itself. Argon2id makes every try slow, and a longer PIN or pattern makes the job much harder, but a short one is still short.
- Seeing that Lockspeare is installed, how much encrypted data it holds, and the approximate size of each encrypted file.
- Losing both your PIN or pattern and your recovery phrase. Nobody can open the vault then, including us.
Independent review
This design has not been independently audited. It is published here in full so anyone can check it. If you find a problem, write to security@lockspeare.com.