Guide

How does photo vault encryption work?

Updated November 9, 20268 minutesYou need: No technical background.

Short answer

A good vault encrypts every file with its own random key, then locks those keys under a master key that is itself locked by your PIN and a recovery phrase. Without the PIN or the phrase, the files are unreadable noise, even to the app's maker. The security depends on the algorithm, the key handling, and how guessable your PIN is.

“Encrypted” is the most overused word in the vault app category. It can mean a serious design or a marketing line. This guide explains what encryption in a photo vault actually does, using plain words, so that you can tell which is which.

What encryption does

Encryption scrambles data using a secret key so that only someone with the key can read it. The scrambled version is called ciphertext. Without the key it looks like random noise, and the only way to read it is to guess the key, which for a modern 256-bit key is not feasible.

So a vault does not “hide” a photo. It converts it into ciphertext and keeps the key somewhere only you can reach.

Hiding is not encrypting

Some apps only move a file to a folder that does not show up in the gallery, and show a PIN screen in front. The file is still readable by anything that can reach the folder. A PIN screen is a lock on a door, and encryption is a lock on the contents. Ask which you have.

The pieces of a good design

One key per file

Each photo and video gets its own random 256-bit key. If one key were ever exposed, only that file would be at risk. It also makes it possible to check each file separately.

Authenticated encryption

The common choice is AES-256 in GCM mode, which is available in Apple’s CryptoKit. GCM does two jobs: it encrypts, and it attaches a tag that proves the data was not changed. If a single byte flips, the tag fails and the file refuses to open. A mode without authentication, such as plain CTR, hides the contents but does not detect tampering on its own. For large videos, files are cut into chunks and each chunk is sealed with its position, so chunks cannot be swapped, reordered or cut off without detection.

A master key and key wrapping

The per-file keys are not stored in plain form. They are wrapped, which means encrypted, under a master key. The master key is wrapped in turn under keys that come from you. That layering means you can change your PIN by re-wrapping one key, without re-encrypting thousands of photos.

A key from your PIN, made slow on purpose

A PIN is short, so on its own it would be easy to guess by trying all combinations. A key derivation function such as PBKDF2 turns the PIN into a key by repeating a calculation hundreds of thousands of times. For a legitimate unlock the delay is a fraction of a second. For an attacker testing millions of guesses, it adds up. OWASP’s guidance for PBKDF2 with SHA-256 is at least 600,000 rounds. The app should also slow wrong guesses on the device itself.

A second key from a recovery phrase

A random recovery phrase of 12 words has 128 bits of randomness. It can unlock the master key as well, so that a forgotten PIN or a new phone is not the end. Because it is random, it needs no stretching.

Encrypted thumbnails and metadata

If thumbnails and the file list are stored in plain form, someone with the files can still see small versions of your photos and their names. A careful vault seals those too.

Where the keys live

The keys must exist in memory while the vault is open. A well-built app clears them when you leave, locks itself automatically, and covers its screen in the App Switcher. Some apps also mix in a secret from the device’s secure hardware, so that copying the files to another computer is not enough to try PIN guesses there. Ask what the vault does.

What encryption cannot do

  • Protect an unlocked vault. If your phone is open and the vault is open, the photos are readable.
  • Make a weak PIN strong. If an attacker has the files and a lot of computing power, a four-digit PIN falls quickly even with slow stretching. A longer PIN helps.
  • Defend against malware. Software that records your screen or keystrokes sees what you see.
  • Remove other copies. A photo you saved to Photos, sent in Messages or screenshotted is a plain copy somewhere else.
  • Recover a lost key. If you lose both the PIN and the recovery phrase, nobody can read the vault.

Encrypted backups

A vault that backs up must encrypt before the data leaves the phone. Then the cloud holds only ciphertext, and whoever runs the cloud cannot read it. A backup is only useful if you can restore it, so look for a hash check on each piece of the backup and a test restore.

Questions to ask any vault

  1. Which algorithm encrypts my files, and in which mode?
  2. Is there a separate key for each file?
  3. How is my PIN turned into a key, and how are wrong guesses slowed?
  4. Are thumbnails, names and dates encrypted?
  5. Is the backup encrypted before it leaves my phone?
  6. What happens if I lose my PIN and my phone?
  7. Has anyone independently reviewed it? If not, does the company say so?

An app that answers these plainly is a better bet than one that says “military-grade”. An honest answer to the last question includes “not yet” where that is true.

What can go wrong

  • Assuming encrypted means recoverable. Encryption protects against others, and it also protects against you if you lose the keys.
  • Trusting claims without detail. Vague words are a warning sign.
  • Using a short PIN. Consider a longer PIN, and use the recovery phrase for backups.

How Locked Roll does this

This is how Locked Roll is built: AES-256-GCM from Apple's CryptoKit for each file, a PIN key made with PBKDF2 at 600,000 rounds or more, and a 12-word recovery key. The Security page lists what it protects against and what it cannot do.

Sources

Last reviewed November 9, 2026 for iOS 26. Apple changes menus between releases, so if a step looks different on your iPhone, check Apple's guide above. Spotted a mistake? Email support@lockedroll.com.

Related guides

Get notified at launch

No account. No analytics. Free to start.