Petersaint › Guides › iPhone encryption

iPhone encryption: how to check it's on, and what it protects

By Jon Hurdle, Johannson Limited · Updated 15 November 2026

Quick answer

Your iPhone encrypts its data as soon as you set a passcode; there is no separate switch. To check, open Settings › Face ID & Passcode, enter your passcode and scroll down: it should say Data protection is enabled. That protects a locked phone. Backups to a computer need Encrypt local backup, and iCloud Photos is only end-to-end encrypted with Advanced Data Protection.

How to check your iPhone is encrypted

  1. Open Settings and tap Face ID & Passcode (or Touch ID & Passcode on an iPhone with a Home button).
  2. Enter your passcode.
  3. Scroll to the bottom of the screen.
  4. Look for the line Data protection is enabled. If you see it, the phone's storage is encrypted.

If the screen offers Turn Passcode On instead, the phone has no passcode. Set one now.

How to encrypt your iPhone

Apple puts it plainly: "Setting a passcode also turns on data protection, which encrypts your iPhone data with 256-bit AES encryption." So encrypting an iPhone means setting a passcode, and making it a good one.

  1. Go to Settings › Face ID & Passcode (or Touch ID & Passcode).
  2. Tap Turn Passcode On, or Change Passcode if you already have one.
  3. Tap Passcode Options to choose the type. Apple recommends Custom Alphanumeric Code or Custom Numeric Code as the strongest choices.

Length matters. Apple's security guide says "the longer a passcode or password is, the stronger it is." A six-digit code beats four, and a long code of letters and numbers beats both.

The same screen has an Erase Data option, which erases the phone after 10 wrong passcodes in a row. Use it only if you keep a recent backup.

How iPhone encryption works, in plain terms

Apple calls the system Data Protection. When a file is created, the iPhone makes a new 256-bit key for it and hands that key to a hardware encryption engine, which encrypts the file as it is written to storage. Those per-file keys are protected in turn by class keys, and some class keys are only available after you enter your passcode.

Your passcode is tied to a secret built into that particular phone's chip. In Apple's words, "brute-force attempts need to be performed on the device under attack." Someone can't copy the storage to a fast computer and guess passcodes there. Each guess on the phone takes about 80 milliseconds by design, and the iPhone adds longer and longer waits after wrong entries. After six wrong passcodes in a row, the iPhone locks you out.

Locked, unlocked and "after first unlock"

Data Protection puts every file in a class, and the class decides when it can be read.

Data Protection classWhen the file can be read
Complete ProtectionOnly while the phone is unlocked. The key is thrown away shortly after the phone locks (10 seconds if Require Password is set to Immediately).
Protected Unless OpenOpen files stay usable while locked; once closed they are protected again. Used for things like a mail attachment downloading in the background.
Protected Until First User AuthenticationFrom the first unlock after a restart, and from then on, even when the phone locks again. This is the default for third-party app data.
No ProtectionStill stored encrypted, but the key is protected only by the device itself; its main benefit is a fast remote wipe.

The practical point: much app data is readable from the first unlock after a restart until the phone is next switched off. And whenever the phone is unlocked, everything on it is open to whoever is holding it.

What iPhone encryption doesn't cover

Encrypt your computer backups

  1. Connect your iPhone to your Mac or PC with a cable.
  2. On a Mac, open Finder and select your iPhone. On Windows, open the Apple Devices app (or iTunes if your PC doesn't have it).
  3. On the General or Summary tab, under Backups, select Encrypt local backup.
  4. Create a password when asked. Keep it safe: without it you can't use the backup.

The first encrypted backup starts straight away and overwrites earlier ones. Encrypted backups also hold things unencrypted ones leave out, such as saved passwords, Wi-Fi settings, website history, health data and call history. For more on what each kind of backup contains, see what an iPhone backup includes.

The layers compared

LayerHow you turn it onWho holds the keyWhat it protects against
iPhone Data ProtectionSet a passcodeYour phone (unlocked by the passcode)Someone with a locked, lost or stolen phone
Encrypted local backupEncrypt local backup in Finder or Apple DevicesYou (backup password)Someone with access to your computer's backup files
iCloud, standard data protectionOn by defaultApple, for Photos and BackupOutsiders reaching Apple's servers or your data in transit
Advanced Data ProtectionAn option in iCloud settings (see below)Your trusted devicesAnyone, including Apple, reading Photos, Backup and most other iCloud data
A separate vault app (e.g. Petersaint)Install it and set its own secretDepends on the app; for Petersaint, the iPhone's Secure EnclaveSomeone using your phone while it's unlocked

Advanced Data Protection raises the number of end-to-end encrypted iCloud categories from 15 to 25, but some metadata, such as dates and checksums, stays under standard protection. It also changes how recovery works, so read our guide to Advanced Data Protection on iPhone, including whether it's available where you live, before you turn it on.

Where a separate encrypted vault fits

A strong passcode, encrypted backups and Advanced Data Protection cover the main risks. The gap left is the unlocked phone: once you hand it over, or someone knows your passcode, the built-in encryption no longer stands in the way. The Photos Hidden album doesn't close that gap either, because it opens with the same Face ID or passcode.

A vault app with its own secret does. Petersaint encrypts each photo, video or file with AES-256-GCM using its own key, and those keys are protected by a vault key held by the iPhone's Secure Enclave. The vault opens with a pattern you draw, separate from your phone passcode, and the pattern is never used as the encryption key. Files stay on that iPhone, with no account and no cloud copy. Our guide to what "encrypted" means in a photo vault explains how to judge any vault's claims.

Honest limits. 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. Backup isn't automatic: the vault is left out of iCloud and computer backups, so export an encrypted backup, or keep copies elsewhere, of anything you can't lose. It's iPhone only, iOS 16.4 or later.

Petersaint: an encrypted vault for the photos and files you want locked even when your phone isn't. Free for up to 50 items. No account, no cloud, no data collected.

Download on the App Store

Questions

Is my iPhone encrypted?

If it has a passcode, yes. Setting a passcode turns on Data Protection, which encrypts your iPhone data with 256-bit AES. To check, open Settings › Face ID & Passcode (or Touch ID & Passcode), enter your passcode and scroll to the bottom: it should say Data protection is enabled.

How do I encrypt my iPhone?

Set a passcode in Settings › Face ID & Passcode › Turn Passcode On. There is no separate encryption switch. A longer passcode, such as a custom alphanumeric code, makes the encryption harder to attack.

Does encryption protect my iPhone when it is unlocked?

Not from the person holding it. While the phone is unlocked, the data is decrypted for whoever is using it. Encryption mainly protects a phone that is locked, lost or stolen, and anyone who knows your passcode can unlock it.

Are iPhone backups encrypted?

iCloud backups are encrypted, but under standard data protection Apple holds the keys; Advanced Data Protection makes iCloud Backup end-to-end encrypted. Backups to a Mac or PC are not encrypted unless you turn on Encrypt local backup.

Are my photos in iCloud end-to-end encrypted?

Not by default. Under standard data protection, iCloud Photos is encrypted in transit and on Apple's servers, with Apple holding the keys. Turning on Advanced Data Protection makes iCloud Photos end-to-end encrypted, with the keys held on your trusted devices.

Sources: Apple iPhone User Guide: Set a passcode on iPhone, Apple Platform Security: Data Protection overview, Apple Platform Security: Data Protection classes, Apple Platform Security: Passcodes and passwords, Apple Support: About encrypted backups on your iPhone, Apple Support: iCloud data security overview, University of Florida IT: Apple iOS security guidance.