Petersaint › Guides › Encrypted photo vault

Encrypted photo vaults: what "encrypted" really means

By Jon Hurdle, Johannson Limited · Updated 20 October 2026

Quick answer

An encrypted photo vault scrambles each photo so it's useless without a key. What decides how safe it is is where that key lives: protected by the iPhone's hardware, worked out from your PIN, or held on a company server. Your iPhone already encrypts everything while locked; a vault adds a second, separate key. A key built from a 4-digit PIN alone is weak.

Almost every photo vault app says it's encrypted. The word on its own tells you very little. Two apps can both truthfully say "encrypted" and protect you very differently. This guide explains what to look for, without the jargon.

Encryption in one paragraph

Encryption turns a photo into scrambled data. A key turns it back. Without the key, the scrambled data is useless, even to someone who copies it. "Encryption at rest" means the file is stored scrambled, not just scrambled while it travels over the internet. For a vault on your phone, encryption at rest is the part that matters.

The strength of the scrambling is rarely the weak point. Modern ciphers such as AES-256 are standard. The weak point is almost always the key: how it's made, and where it's kept.

What your iPhone already does

It helps to know the baseline. Apple's Data Protection encrypts files stored on the iPhone. Every time a file is created, Data Protection creates a new 256-bit key for it, and each file is assigned a protection class.

Your passcode is tied into this. Apple says the passcode is "entangled" with a hardware identifier unique to your device, so guessing attempts have to be made on the device itself. Each attempt is deliberately slowed to about 80 milliseconds, and there are escalating time delays after wrong entries. Apple also notes that the stronger your passcode, the stronger the encryption key becomes.

So the photos in your library are already encrypted while the phone is locked. The catch is what happens when it's unlocked. Then your photos, including the Hidden album, are available to whoever is holding it, apart from one Face ID, Touch ID or passcode check on the Hidden album. A vault's job is to add a second key that the phone's unlock doesn't open.

Where the vault's key lives: the three models

Where the key livesHow it worksStrengthWeakness
Protected by the Secure EnclaveThe key is generated and protected by the iPhone's dedicated security hardware; your code only asks the phone to use itThe key can't simply be copied off the phone with the filesNo way back if you lose the code or the phone, unless the app adds a backup
Derived from your PIN or patternThe app turns your code into the key with a mathematical recipeSimple, and works the same on any deviceOnly as strong as the code: a short PIN can be guessed
Held on a serverThe company stores the key, or can reset it for youEasy recovery if you forget the codeWhoever controls the server can, in principle, reach your files

What the Secure Enclave is

The Secure Enclave is a dedicated security subsystem built into the iPhone's chip. Apple describes it as isolated from the main processor and designed to keep sensitive data secure even if the main operating system is compromised. Each device also has a unique hardware identifier that Apple says neither it nor its suppliers can access.

For a vault app, the practical point is this: if the key is protected there, copying the vault's files off the phone isn't enough to read them.

Why a 4-digit PIN-derived key is weak

A 4-digit PIN has 10,000 possible combinations. If a vault turns that PIN directly into its encryption key, then anyone who gets hold of the encrypted files, for example from an unencrypted backup or a copy taken off the phone, can try all 10,000 on their own computer. Nothing slows them down, and nothing stops them after ten wrong guesses. The phone's own protections don't apply, because the guessing isn't happening on the phone.

Compare that with the iPhone passcode, where Apple ties guessing to the device and adds delays. A vault built on the phone's hardware can borrow that protection. A vault that derives its key from a short PIN alone can't.

Longer codes help a lot. So does a design where the code is only checked, not used as the key itself, and where the real key stays on the device.

Cloud backups and the key

If a vault backs up to the cloud, ask the same question: who holds the key to the backup? Some vaults encrypt the backup on your phone before it's uploaded to your private iCloud, so the cloud only ever sees scrambled data.

Apple's own iCloud Photos works differently depending on a setting. With standard data protection, Apple holds the encryption keys for Photos. With Advanced Data Protection turned on, Photos is end-to-end encrypted and the keys stay on your trusted devices, but Apple can't help you recover the data if you lose access.

Questions to ask any "encrypted" vault

  1. Which cipher does it use, and is each file encrypted separately?
  2. Where is the key kept: on the device's hardware, derived from my code, or on a server?
  3. Is my code used as the key, or only to check it's me?
  4. What limits wrong guesses, and can they be skipped by changing the phone's clock?
  5. If there's a backup, is it encrypted before it leaves the phone?
  6. What happens if I forget the code?

For the wider buying checklist, including privacy labels and pricing, see photo vault apps for iPhone. To compare named apps, see the best photo vault app for you.

How Petersaint handles the key

Petersaint is our app, so here's its design in the same terms. Each file is encrypted with AES-256-GCM using its own key. Those keys are protected by a vault key held by the iPhone's Secure Enclave, and that key never leaves the phone. Your pattern is checked with Argon2id and is never used as the encryption key. Wrong patterns trigger increasing waits that changing the clock doesn't skip, and by default wrong patterns never erase the vault. Turn on self-destruct and the key is destroyed after 3, 5 or 10 wrong patterns in a row. There's no cloud copy at all.

Honest limits. Keeping the key on one iPhone has a cost. Petersaint can't reset a forgotten pattern: without an encrypted backup you exported, and its 12-word phrase, the files are gone. Wrong patterns never erase the vault unless you turn on self-destruct, which destroys the files after 3, 5 or 10 wrong patterns in a row. The vault is excluded from iCloud and computer backups, so if the phone is lost the files go with it unless you've exported an encrypted backup. iPhone only, iOS 16.4 or later.

Petersaint: every file encrypted with its own key, protected by your iPhone's Secure Enclave. No account, no cloud, no data collected.

Download on the App Store

Questions

What does encrypted photo vault mean?

A vault app that stores each photo in scrambled form, so it can only be read with a key. How safe it is depends mostly on where that key is kept.

Isn't my iPhone already encrypted?

Yes. Apple's Data Protection encrypts files on the device, tied to your passcode. But once the phone is unlocked, your photos are available. A vault adds a second, separate key.

Is a 4-digit PIN enough for a photo vault?

Only if the key is protected on the device and guesses are limited. If the key is derived from the PIN alone, its 10,000 combinations can be tried quickly on a computer once the files are copied.

What is the Secure Enclave?

A dedicated security subsystem in the iPhone's chip, isolated from the main processor. Apple designed it to keep sensitive data secure even if the main operating system is compromised.

Are iCloud Photos end-to-end encrypted?

Only with Advanced Data Protection turned on. With standard data protection, Apple holds the keys for iCloud Photos.

Can an encrypted vault recover my photos if I forget the code?

Only if the key or a backup is held somewhere else, such as a server. Vaults that keep the key only on your phone can't, which is the trade-off for stronger privacy.

Sources: Apple Platform Security: Data Protection overview, Apple Platform Security: Passcodes and passwords, Apple Platform Security: The Secure Enclave, Apple Support: iCloud data security overview, Apple Personal Safety User Guide: Hide photos and videos, App Store: Photo Vault - Vaultaire.