The Secure Enclave is a small, separate security computer built into the chip of every iPhone since the iPhone 5s. It has its own processor, its own protected memory and its own keys, and it's walled off from the rest of the iPhone. Its job is to keep the most sensitive keys of the device safe, even if iOS itself is compromised.
What the Secure Enclave is
Apple describes it as "a dedicated secure subsystem" inside its chips, "isolated from the main processor". The main processor runs iOS and your apps. The Secure Enclave runs its own small operating system and only does security work: protecting the keys that encrypt your data, checking your passcode, and matching Face ID and Touch ID.
The important idea is separation. Even an attacker who takes over iOS can only ask the Secure Enclave to do things. They can't look inside it or copy its keys out.
The details are in Apple's Platform Security Guide. The short version is below.
What's inside it
- Its own processor. The Secure Enclave Processor is used only by the Secure Enclave, which helps against attacks that rely on sharing a processor with the target.
- Encrypted memory. Everything it writes to memory is encrypted and authenticated. If the memory is tampered with, it stops working until the iPhone restarts.
- A secure boot. Its own read-only startup code checks Apple's signature before running its software.
- A true random number generator for creating keys.
- A unique device key (UID). Each iPhone gets a random key fused into its chip. It's never shown to any software, not even to the Secure Enclave's own operating system: the hardware uses it without revealing it.
- Secure storage with attempt counters. Newer iPhones have a separate Secure Storage Component that counts passcode attempts and erases the unlock material if the limit is reached.

What it does for your iPhone
It ties your data to this one iPhone. All files on the iPhone are encrypted, and the keys that protect them are linked to the device's UID key. Apple notes that if the storage chip were moved to another device, the files would be unreadable.
It ties your data to your passcode. The keys that unlock your data come from both your passcode and the UID key. So the passcode can only be checked on this iPhone, by this Secure Enclave, and an attacker can't copy the data and try millions of passcodes on a fast computer.
It limits guessing. The Secure Enclave enforces the delays between wrong passcodes, and on newer iPhones the Secure Storage Component can erase the data after too many failed attempts.
It protects Face ID and Touch ID. Your face and fingerprint data are kept and matched inside it, and apps only get a yes or no.
What it doesn't do
The Secure Enclave protects data when the iPhone is locked, stolen or taken apart. It doesn't help once the iPhone is unlocked:
- Anyone using your unlocked iPhone sees what you'd see, including the Photos app and the Hidden album.
- Someone who knows your passcode can unlock everything it protects.
- iCloud data lives on Apple's servers, where its protection depends on iCloud settings, not on your iPhone's chip. See is iCloud Photos end-to-end encrypted?.
That's the gap a vault app has to fill: a second lock that the iPhone passcode doesn't open.

How Private Vault benefits from the Secure Enclave
Private Vault doesn't create its own keys inside the Secure Enclave. It uses two iOS protections that the Secure Enclave enforces, and builds its own encryption on top.
1. A device secret that never leaves your iPhone. When you first use Private Vault, it creates a random 32-byte secret and stores it in the iOS Keychain as available only when unlocked, on this device only. Keychain items of that kind are protected by keys tied to your iPhone's UID and your passcode. They aren't synced to iCloud Keychain and don't move to another iPhone in a backup.
2. Your pattern is useless without that secret. Private Vault turns your pattern into the vault key with PBKDF2-HMAC-SHA512 and 600,000 rounds, using that device secret as the salt. Without the secret, an attacker with a copy of the vault files can't even start guessing patterns on another computer. Every guess has to happen on your iPhone, in the app, where wrong patterns trigger growing waits.
3. Files with the strongest iOS protection. On top of Private Vault's own AES-256-GCM encryption, every vault file uses iOS's Complete data protection class. Its key exists only while your iPhone is unlocked and is handled by the iPhone's hardware encryption path. About 10 seconds after you lock the phone, that key is discarded and the files can't be read, not even by iOS.
4. Vault files stay out of iPhone backups. Vault files are excluded from iPhone backups and the device secret stays on the device, so a backup of your iPhone on a computer or in iCloud doesn't contain an openable vault.
The result is two layers that protect against different things. The Secure Enclave keeps the vault tied to your locked iPhone. Private Vault's pattern keeps it closed when the iPhone is unlocked and in someone else's hands.
The deliberate exception: the recovery phrase
If your iPhone is lost, a secret tied to it would lock you out forever. That's why each vault also has a 9-word recovery phrase. It doesn't depend on the device secret, so it works on a new iPhone and with encrypted iCloud backup. To make up for that, it's nine words long, far harder to guess than a pattern, and it goes through 800,000 rounds of key derivation. Keep it written down somewhere safe and offline.
Questions
Which iPhones have a Secure Enclave?
Every iPhone from the iPhone 5s onwards. Newer chips add more protections: memory replay protection from the A11, and a dedicated Secure Storage Component from the A12.
Can Apple read the keys in the Secure Enclave?
Not the device's root key. According to Apple, since the A9 chip the UID key is generated inside the Secure Enclave during manufacturing, so it isn't available to Apple or its suppliers.
Does the Secure Enclave store my photos?
No. It stores no files. It holds and uses the keys that protect them, while the encrypted data stays in the iPhone's normal storage.
Does the Secure Enclave protect me if someone knows my passcode?
No. Once the iPhone is unlocked, the data is available to whoever is holding it. That's why apps like Private Vault add their own lock on top.
Keep it private on your iPhone
No account. No analytics. Encrypted on your iPhone.



