iOS Internals · Course 2
Locks & Encryption
How an iPhone guards your data with keys, faces and fingerprints.
About this course
Your iPhone's passcode does far more than unlock the screen. It's mixed with a secret built into the Secure Enclave, a walled-off processor inside the chip, to make the keys that protect your data. That's why guesses can only be tried on the phone itself, why wrong guesses get slower and slower, and why the passcode is always needed after a restart, even if you normally use your face or fingerprint.
You'll learn what the Secure Enclave stores, then restart, unlock and lock a simulated phone to see which files each of the four Data Protection classes keeps readable. You'll see how Face ID and Touch ID work and when only the passcode will do, and try Stolen Device Protection at home and away to see how it slows down a thief who knows your passcode. The final challenge works out what a thief who watched a relative type her passcode can and can't do.
Lessons
- 1The Secure Enclave11 min · Meet the vault inside your iPhone's chip that checks passcodes and guards keys.Learn what the Secure Enclave is and why it's kept apart · See what it stores: passcode checks, face and fingerprint data, keys · Learn how guessing gets slower, and the Erase Data option
- 2Data Protection Classes13 min · See why some files open after a restart and others stay locked until you unlock.Restart, unlock and lock the phone in the lab · Learn the four Data Protection classes in plain words · See how passcode-entangled keys explain BFU and AFU
- 3Face ID & Touch ID12 min · How your face or fingerprint unlocks the phone, and when only the passcode will do.Learn how Face ID and Touch ID check who you are · See where the data lives and who can't see it · Learn when the passcode is required anyway, and Require Attention
- 4Stolen Device Protection13 min · Stop a thief who knows your passcode from taking over your phone and account.Try sensitive actions at home and away in the lab · Learn what needs Face ID and what gets a Security Delay · See how inactivity reboot and accessory rules protect a locked phone
- 5Challenge: The Café Snatch15 min · Work out what a thief who saw your aunt's passcode can and can't do.Work out which protections stop the thief, and which don't
Do it on the simulated phone
Lessons have labs you can try in your browser, plus questions that earn points toward the Keyholder badge.
Start lesson 1