How personal data encryption works on iPhone
An iPhone passcode, Advanced Data Protection for iCloud, and a vault passcode protect different copies. Turning one of them on leaves the other copies where they are.
Quick answer: Apple's passcode guide says that setting a passcode turns on data protection, which encrypts your iPhone data. Some apps may opt out. In iCloud, standard data protection is the default: Apple says the data is encrypted, and Apple holds the keys for categories such as Photos, iCloud Drive, Notes, and iCloud Backup. Advanced Data Protection is optional. Apple says it extends end-to-end encryption to the majority of iCloud data, including those categories, and that Apple then cannot recover that data for you. iCloud Mail, Contacts, and Calendars stay with Apple either way. A vault such as Ego keeps a separate copy behind its own six-digit passcode. Importing does not delete the Photos or Files original, and it does not turn Advanced Data Protection on. A signed physical-device restore has not been verified.
Published by Chreia Labs, the maker of Ego. This page uses Apple's passcode guide, Apple's iCloud data security overview (published January 5, 2026), Apple's Advanced Data Protection article (published April 17, 2026), Ego's public product pages, and the US App Store listing for Ego, checked November 16, 2026. No independent security audit is claimed.
What the iPhone passcode encrypts
Apple's passcode guide says that setting a passcode also turns on data protection, which encrypts your iPhone data. The same sentence says some apps may opt out of using data protection. This is the lock for that device. It is the code you enter to wake the iPhone, not a separate password for one album, one PDF, or one vault.
- Go to Settings.
- On an iPhone with Face ID, tap Face ID & Passcode. On iPhone Duo or iPhone SE, tap Touch ID & Passcode.
- Tap Turn Passcode On, or Change Passcode if one is already set.
Anyone who can unlock the iPhone can open the apps that use that same device authentication. Hiding a photo or requiring Face ID before Photos opens still uses this passcode. See how to password-protect photos on iPhone and how to lock or hide an app.
Setting that passcode does not encrypt a backup stored on a Mac or PC. A computer backup stays unencrypted until you select Encrypt local backup. See how to encrypt an iPhone backup.
Changing the passcode, including the 72 hours when the previous passcode can still be used once, is covered in what your iPhone passcode protects.
Stolen Device Protection does not encrypt the iPhone, and it does not turn Advanced Data Protection on. Away from familiar locations it can stop the passcode from standing in for Face ID or Touch ID. See how Stolen Device Protection works on iPhone.
What standard data protection covers in iCloud
Apple's overview says standard data protection is the default for an Apple Account. iCloud data is encrypted in transit and stored in an encrypted format at rest. Apple keeps the encryption keys from your trusted devices in Apple data centers, so Apple can decrypt that data for you when you sign in on a new device, restore from a backup, or recover after a forgotten password.
Fifteen data categories are end-to-end encrypted even under that default. Apple's examples include Health and passwords in iCloud Keychain. Apple says it does not have the keys for those categories. Photos, iCloud Drive, Notes, and iCloud Backup are not in that always-on list. Apple's table lists them under standard data protection with the keys stored by Apple.
A copy that stays in iCloud Photos is still in your iCloud library. Turning the device passcode on does not take it out. See how to keep photos out of iCloud Photos.
What Advanced Data Protection changes
Advanced Data Protection is optional. Apple says it is available starting with iOS 16.2, iPadOS 16.2, and macOS 13.1, and that it is Apple's highest level of cloud data security. With it on, the number of end-to-end encrypted categories rises to 25 and includes iCloud Backup, Photos, Notes, and more. Apple says your trusted devices keep the keys for that data, so Apple cannot help you recover it. You will be asked to set up at least one recovery contact or a recovery key first. You also need two-factor authentication, a device passcode, and updated software on the devices signed in to that Apple Account. Turning it on from one device enables it for the whole account. Managed Apple Accounts and child accounts are not eligible.
- Open the Settings app.
- Tap your name, then tap iCloud.
- Scroll down, tap Advanced Data Protection, then tap Turn on Advanced Data Protection.
- Follow the onscreen instructions to review your recovery methods and enable it.
Apple's table keeps iCloud Mail, Contacts, and Calendars on standard data protection even after you turn this on. Apple says Mail has to work with the rest of email, and Contacts and Calendars use CalDAV and CardDAV, which do not provide end-to-end encryption. Some metadata also stays under standard data protection. For Photos, Apple's examples include whether an item is marked hidden or deleted. For iCloud Drive, they include the file name.
Shared Albums, iWork collaboration, and sharing with anyone who has the link do not use Advanced Data Protection. Those shared copies are not end-to-end encrypted. See who can see a shared album and how an iCloud photo link works. Access to iCloud data on the web at iCloud.com is off by default while Advanced Data Protection is on. Apple says turning web access back on lets that browser, and Apple, have temporary access to the keys your device provides.
You can turn Advanced Data Protection off later. Apple says your device then uploads the required keys to Apple, and the account uses standard data protection again. Apple's overview also says third-party app data stored in iCloud Backup, and CloudKit encrypted fields and assets, are end-to-end encrypted while Advanced Data Protection is on. That is still an account setting for data Apple stores in iCloud. It does not add a passcode to one photo, and it does not remove a copy that remains on the iPhone.
What a separate vault passcode covers
The US App Store listing, checked November 16, 2026, names the app Ego: Personal Data Encrypted. It is free, version 1.0, for iPhone with iOS 26 or later. Each vault has its own six-digit passcode, and unlocking opens only that vault. Ego has no account, advertising, or analytics. The first vault is free, with no artificial item limit beyond available device storage. Alter Ego adds unlimited vaults, optional encrypted iCloud backup, and Secure Smart Search.
The listing says saving or sharing a copy outside Ego leaves its encryption, and the encrypted original stays in the vault. Importing a copy into Ego does not delete the photo in Photos or the file in Files. Those originals can still sync, back up, or appear in search. A PDF password is a different control again: it applies to the document you lock, not to every copy and not to the Apple Account. See how to encrypt files on iPhone, what an encrypted photo vault keeps separate, and what happens to the original after import.
Ego does not turn Advanced Data Protection on or off. Optional iCloud backup in Ego is a separate choice from Apple's account setting. A signed physical-device restore has not been verified. Chreia Labs cannot reset a passcode or decrypt a backup. Read iCloud backup versus manual recovery and Ego's product details before you treat any cloud copy as the only copy.
Check the copy you actually care about
- The device passcode encrypts data on that iPhone, with the opt-out Apple describes. It also unlocks the phone.
- Standard data protection leaves Photos, iCloud Drive, Notes, and iCloud Backup recoverable by Apple.
- Advanced Data Protection changes those iCloud categories to end-to-end encryption and asks you to keep a recovery contact or recovery key.
- A vault passcode covers the copy inside that vault. Confirm the import, then decide what to do with the source.
Never send a passcode, recovery key, or private file to support. Questions can go through Ego support.