AES-256 Encryption Explained: What It Means for Photos on Your iPhone
What AES-256 is, why the key size matters, what modes and keys add, and how to read the claim on a vault app's listing.
Quick answer
AES-256 is the Advanced Encryption Standard used with a 256-bit key, published by NIST in 2001. The name says nothing about the mode, the key or where the key is kept, and those decide how well your photos are protected.
- What it is
- A symmetric block cipher standardised by NIST as FIPS 197. The same key locks and unlocks the data, 128 bits at a time.
- Can it be cracked
- No practical attack on AES-256 itself is known. Real attacks go after the password, the key storage or the unlocked device.
- What the label skips
- The mode of operation, how the key is made from your PIN, where the key lives and which files are encrypted.
- When to use a vault
- When chosen photos should be encrypted again inside an app, behind a code that is different from the iPhone passcode.
Best overall: Stash
Your iPhone already encrypts its storage, but that protection opens with the phone's own passcode, and photos in iCloud Photos are under standard protection unless Advanced Data Protection is on. Stash encrypts each item you import with AES-256 on the iPhone before it is saved, keeps the key in the iOS Keychain and opens the vault with a PIN of its own, typed into a working calculator. There is no Stash server that receives your files. Stash is free to download with no ads, and the encrypted vault works from the first launch.
What AES-256 is
AES stands for Advanced Encryption Standard. It is a block cipher that the US National Institute of Standards and Technology (NIST) published as FIPS 197 in November 2001, after an open competition that the Rijndael cipher won. NIST updated the document in May 2023 with editorial changes only; the algorithm itself is unchanged (as of 2 December 2026).
FIPS 197 defines three versions, and the number in each name is the key length in bits:
- AES-128 uses a 128-bit key.
- AES-192 uses a 192-bit key.
- AES-256 uses a 256-bit key.
All three work on blocks of 128 bits, which is 16 bytes. A photo of a few megabytes is therefore split into many thousands of blocks, and each block is scrambled with the same key.
AES is symmetric: the key that encrypts a file is the same key that decrypts it. That is the opposite of the public-key systems used to set up a secure web connection, where one key locks and a different key unlocks. Symmetric ciphers are fast, which is why phones, laptops and vault apps use AES for the files themselves.
Inside the cipher, AES-256 runs 14 rounds over each block. Every round substitutes bytes through a fixed table, shifts and mixes them, and combines them with a part of the key. After the last round, the output looks like random data. Without the key, there is no shortcut known that turns it back into a photo.
Why 256 bits is a large number
A 256-bit key has 2^256 possible values. That number has 78 digits. Trying every key one by one is not a realistic attack on any computer that exists, which is why attackers almost never try to break AES directly. They look for the key somewhere else instead.
The difference between AES-128 and AES-256 matters mostly for the long term. NIST's post-quantum cryptography FAQ addresses the common worry that a quantum computer could halve the strength of a key with Grover's algorithm. NIST's view, as of 2 December 2026, is that this speedup is hard to use in practice because the steps must run one after another, and it says AES-192 and AES-256 "will still be safe for a very long time." It also expects AES-128 to stay secure for decades. In other words, the key size is rarely the weak point in a real app.
The name leaves out the mode
"AES-256" tells you the cipher and the key length. It does not tell you how the cipher is applied to a whole file. That is the job of a mode of operation, and NIST publishes the modes in separate documents.
- NIST SP 800-38A (December 2001) defines five confidentiality modes: ECB, CBC, CFB, OFB and CTR.
- NIST SP 800-38D (November 2007) defines GCM, which NIST describes as "authenticated encryption with associated data."
The practical differences, in plain words:
- ECB encrypts every block on its own. Identical blocks give identical output, so patterns in the original can show through. It is a poor fit for images.
- CBC links each block to the previous one with a random starting value, which hides patterns. It encrypts, but on its own it does not detect whether someone changed the file.
- CTR turns AES into a stream of key material that is combined with the data. It is fast and hides patterns; like CBC, it needs a separate check to detect changes.
- GCM is CTR plus a built-in authentication tag. If a single bit of the encrypted file is changed, decryption fails instead of returning damaged data.
Apple uses yet another mode, XTS, for the iPhone's own storage. Its Data Protection overview says that on A14 and later chips "the encryption uses AES-256 in XTS mode," and that a new 256-bit key is created for every file. So two apps can both say "AES-256" and still build very different systems around it.
The key matters more than the cipher
Every encryption system has to answer three questions about the key. These answers are where vault apps differ most.
1. Where does the key come from? A key should be random. Some apps create a random key and protect it with your PIN; others turn the PIN itself into the key. Turning a short code into a key is done with a key derivation function. NIST describes this in SP 800-132, "Recommendation for Password-Based Key Derivation", which uses a salt and an iteration count to make each guess slower. A four-digit PIN has 10,000 possible values, so the speed of each guess and any lockout after wrong attempts matter far more than the 256 bits.
2. Where is the key kept? On iPhone, the standard place for secrets is the iOS Keychain, which iOS protects with the device's own encryption. A key written into an ordinary app file, or sent to a server, is easier to reach.
3. Who else has a copy? If a company keeps a copy of the key, or can reset your password and still show your files, then the company can decrypt them. That is the difference between "encrypted" and "encrypted with keys only you hold." Apple's iCloud data security overview is a clear example: under standard data protection, iCloud Photos is encrypted in transit and on the server, but Apple holds the keys. With Advanced Data Protection on, Photos becomes end-to-end encrypted and the keys stay on your trusted devices.
What AES-256 protects against: one table
This table sums up what strong encryption of a photo does and does not change. It applies to any app that encrypts files on the device with AES-256 and keeps the key locally.
| Situation | Does AES-256 on the device help? | Why |
|---|---|---|
| Someone copies the app's files off the phone | Yes | Without the key, the copied files are unreadable data |
| Someone guesses every possible 256-bit key | Yes | The number of keys is far beyond any computer |
| Someone guesses your vault PIN | Only as far as the app slows them down | The PIN opens the key; lockouts and slow key derivation set the pace |
| Someone sees the photo on screen while the vault is open | No | Encryption protects stored files, not what is displayed |
| A copy of the photo is still in Photos or Recently Deleted | No | That copy sits outside the vault and is not encrypted by it |
| A copy was synced to iCloud Photos before import | No | It is under iCloud's own protection, with Apple holding the keys by default |
| Malware runs on an unlocked phone | Limited | Data is decrypted while in use |
| The company behind the app is asked for your files | Yes, if it never holds the key | It has nothing readable to hand over |
The pattern is simple: AES-256 is very good at protecting files at rest. Most real risks come from copies outside the vault, a weak or watched PIN, and moments when the vault is open.
How to check an app's AES-256 claim
You cannot inspect a closed-source app's code, but you can check what it says and how it behaves. These steps work on iPhone with iOS 15.2 or later.
- Read the listing and the vendor's security page. Look for the cipher, the key size and, ideally, the mode. Look for where the key is kept and whether the company can recover your files. "Encrypted" without any detail is a weaker statement than "AES-256 on the device, key in the Keychain."
- Check whether an account is needed. An app that works with no account and no sign-in has less reason to send data to a server.
- Read the App Privacy label. On the App Store page, scroll to App Privacy. Apple's developer guidance says developers fill these labels in themselves, so treat them as the developer's own statement.
- Watch the network. Open Settings > Privacy & Security > App Privacy Report and tap Turn On App Privacy Report. Apple says it then lists, for the past 7 days, the domains each app contacted (About App Privacy Report). Use the vault for a few days and see which domains it reaches.
- Test the recovery path. If the app says it can restore your vault through an email link without any key or phrase you saved, the company may hold a way in. A recovery key that only you were shown is the stronger design.
- Check what stays in Photos. Import a test photo, then look in Photos and in Utilities > Recently Deleted. If the app copies rather than moves, the unencrypted original stays there until you delete it.
For a longer version of this checklist, with a test sheet, see the photo vault app security audit.
Common misunderstandings
- "256-bit" is not always AES. Some listings say "256-bit encryption" without naming the cipher. Ask which one.
- Comparisons with armies or banks are marketing, not a specification. They do not name a cipher, a mode or a key policy. Look for the facts behind them.
- Encryption does not fix a weak code. A strong cipher behind a PIN like 1234 is only as hard to open as the PIN.
- Encryption at rest does not cover data in use. While a photo is on screen, it has been decrypted.
- AES does not slow a modern iPhone down in daily use. Apple's chips include a hardware AES engine, which the Data Protection overview mentions for file encryption.
When the iPhone's own encryption is enough
Your iPhone already encrypts its storage with AES and ties access to the passcode. That is enough when:
- Nobody else knows your iPhone passcode, and Face ID or Touch ID is set up.
- The photos may live in iCloud Photos, and you are fine with standard protection or have turned on Advanced Data Protection.
- You only want photos out of the main library, for which the Hidden album in Photos > Utilities is enough.
When you need more than the iPhone's own encryption
Look at a vault app when:
- Another person knows the passcode. Device encryption opens for anyone who unlocks the phone.
- The photos should not be in iCloud Photos. Under standard protection, Apple holds the keys to iCloud Photos.
- You want a second code for chosen items. A vault adds its own encryption and its own PIN on top of the phone's.
- You want files, not only photos. PDFs, documents and audio need a place too.
How to encrypt photos with AES-256 using Stash
Stash looks and works like a calculator. Behind it, every item you import is encrypted on the iPhone with AES-256 before it is saved, and the key stays in the iOS Keychain.
- Install Stash on an iPhone or iPad with iOS 15 or later.
- Set your vault PIN. Type it into the calculator and press = to open the vault.
- Write down the recovery key Stash shows once during setup and keep it somewhere safe.
- Tap + and import photos, videos, PDFs, documents or audio. Each item is encrypted as it is added.
- In Photos, delete the originals, then empty Utilities > Recently Deleted, so no unencrypted copy is left.
- Optional: turn on Face ID or Touch ID and auto-lock. With Premium, start an encrypted backup to your own iCloud Drive or Google Drive when you choose.
The files sit inside the app, not in the Photos library, so iCloud Photos does not upload them, and no Stash server receives them.
FAQ
What is AES256?
AES256 is the common one-word spelling of AES-256, the Advanced Encryption Standard with a 256-bit key. Apps and spec sheets write it both ways, and it means the same cipher defined in FIPS 197.
What does AES-256 stand for?
Advanced Encryption Standard with a 256-bit key. NIST published it as FIPS 197 in 2001.
Can AES-256 be cracked?
No practical attack on the full cipher is known as of 2 December 2026. Attacks in practice target the password, the key storage or an unlocked device.
Is AES-256 safe against quantum computers?
NIST says AES-192 and AES-256 "will still be safe for a very long time," because Grover's algorithm is hard to run in parallel. It expects AES-128 to remain secure for decades too.
What is the difference between AES-128 and AES-256?
The key length: 128 bits against 256 bits, with 10 and 14 rounds. Both are approved by NIST; AES-256 leaves a larger margin for the future.
Does AES-256 slow down my iPhone?
Not noticeably. iPhones encrypt storage with a hardware AES engine, and a vault encrypts a photo once, when you add it.
Which AES mode is best for photos?
An authenticated mode such as GCM both hides and protects the file against changes. Any mode is a far smaller question than where the key is kept and who holds it.
Is my iPhone already encrypted with AES?
Yes. Apple's Data Protection overview says recent iPhones encrypt files with AES-256 in XTS mode, with a new key for each file. That protection opens with the phone's own passcode.
How do I know if an app really uses AES-256?
Read the vendor's security page for the cipher, mode and key storage, check whether an account or server is involved, and use App Privacy Report to see which domains the app contacts.
The Bottom Line
AES-256 is a strong, well-studied cipher, and NIST expects it to stay safe for a very long time, even against quantum computers. But the name only covers the cipher and the key length. It leaves out the mode, how the key is made from your PIN, where the key is kept and who else holds a copy, and those choices decide how well a photo is protected.
The table above shows the pattern: encryption protects stored files very well, and most real risks come from copies outside the vault, a code someone else knows, and the moments the vault is open. Read a vault's claim with those questions in mind. For photos that need their own code, import them into a vault that encrypts on the device and keeps the key in the Keychain, then delete the originals and empty Recently Deleted.
·Written by the developer of Stash
Save this guide
Download this guide as an image