MobDojoStart learning free

iOS Internals · Course 2

Locks & Encryption

How an iPhone guards your data with keys, faces and fingerprints.

5 lessons64 min totalBadge: Keyholder

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

Hands-on

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