Back to Articles

Why iPhone Passcode Guesses Can't Be Run Offline

Your passcode is entangled with a key fused into the chip, so guesses must run on the phone, slowed by escalating delays and an optional erase.

The short answer

An iPhone passcode can't be guessed on a copy of your data because it is mixed with a secret key fused into the phone's chip. Apple's Platform Security guide says the passcode is entangled with the device's UID, so brute-force attempts need to be performed on the device under attack. Every guess has to go through the phone itself, and the phone makes that slow.

A key fused into the chip

The UID is a random value fused into the SoC at manufacturing time. Apple says it isn't available through JTAG or other debugging interfaces, and keys derived from it stay inside the AES Engine, out of sight even of the Secure Enclave's own software. If you want the wider picture of that chip, we covered the Secure Enclave separately.

Your files sit under a hierarchy of keys that Apple calls Data Protection. Each file gets its own 256-bit key, and whether a file can be opened depends on whether its class keys are unlocked. Because the UID ties all of this to one chip, moving the storage to another device leaves the files unreadable.

The guess has to happen on the phone

On a laptop, a stolen password database can be attacked on rented hardware, billions of guesses a second, with nobody watching. That is offline guessing. For an iPhone, there is nothing equivalent to copy out. To test a passcode, you must derive the real key, and deriving it needs the UID, which never leaves the chip.

Apple also makes each attempt costly. It uses a large iteration count, calibrated so that one attempt takes approximately 80 milliseconds. Apple's own example is that trying every six-character combination of lowercase letters and numbers would take more than five and a half years.

Escalating delays and the erase option

Speed limits come on top of that. After a few wrong entries the iPhone makes you wait, and the wait keeps growing. Apple's table for the iOS and iPadOS Lock Screen reads:

Wrong attemptDelay before the next try
3None
41 minute
55 minutes
615 minutes
71 hour
83 hours
98 hours
10 or moreDevice is locked and needs to connect to a Mac or PC

The delays are enforced by the Secure Enclave, not by software an attacker could patch around. Apple notes that restarting the device during a delay doesn't help, because the timer starts over for the current period.

There is also an opt-in setting. If Erase Data is on, after 10 consecutive incorrect attempts all content and settings are removed from storage. Repeating the same wrong passcode doesn't count twice, and device management can set a lower threshold.

What this means for you

None of this makes a short passcode a strong one. The delays and the 80 ms cost slow a guesser down, but the length of your passcode decides how many guesses are needed. A six-digit code has far fewer possibilities than a long alphanumeric one, which is why how long your PIN should be and a custom alphanumeric passcode are worth a look. The phone's lock state matters too: before and after first unlock the phone protects data differently, and a freshly restarted one is at its most locked down.

Turning on Erase Data is a real trade-off: it raises the cost of a thief's guessing, but it also means ten careless taps by a child or a friend can wipe the phone, so keep backups current.

How Privara handles this

Your iPhone passcode guards the phone. Privara adds a second, separate lock for the content you most want to keep to yourself, and we think it's the best way to keep private content private on an iPhone. Here's why:

  • AES-256 encryption at rest. Content is encrypted, not merely hidden from view.
  • One vault for everything. Photos, videos, documents and contacts live in the same AES-256-encrypted vault, even if you only came to protect one of them.
  • A calculator disguise. Privara looks and works like an ordinary calculator, and the vault opens only when you enter your PIN.
  • No account, nothing uploaded by default. It is a local, zero-knowledge vault, so there is no server-side copy to guess against.
  • Layers on top. A decoy PIN, break-in detection and Face ID or Touch ID add to the PIN.

If you turn on iCloud sync, the threat model changes, and the app says so. Download Privara on the App Store and keep your private photos, videos, documents and contacts in one place.

Frequently Asked Questions

Can someone copy my iPhone's storage and guess the passcode on a computer?

Not usefully. The passcode is entangled with the UID, which is fused into the chip and can't be read out, so each guess must be tried on the phone itself.

How long does one passcode guess take?

Apple calibrates the key derivation so one attempt takes approximately 80 milliseconds, before any lockout delay is added.

What happens after 10 wrong passcodes?

On the Lock Screen the iPhone is locked and needs to connect to a Mac or PC. If you turned on Erase Data, all content and settings are removed after 10 consecutive incorrect attempts.

Does restarting the iPhone reset the delay?

No. Apple says the delay is still enforced after a restart, and the timer starts over for the current period.