Keychain Unlocked
summary
Practical guide to using the Keychain Services C API with concrete patterns: a lightweight Swift wrapper that builds a base query, uses match limit one, implements set/get/delete, and shows Codable-backed values; recommends Apple’s new Swift Configuration for simple cases. Covers app group sharing setup and a working pattern to auto-erase on reinstall by using a scramble key stored in UserDefaults to rekey entries, and shows biometry-protected keys using accessible flags (WhenUnlockedThisDeviceOnly + CurrentSet) plus a two-key pattern to detect biometric signature changes.
AI-written summary · about
chapters (9)
- 0:00Introduction to keychain
- 2:44Keychain API architecture
- 5:04Building a wrapper
- 7:32Data storage patterns
- 14:07Keychain sharing
- 17:13Reinstallation management
- 20:15Biometric protection
- 24:52Advanced security flows
- 27:35Conclusion and wrap-up
related talks
37mKeys from the castle: ancient art of managing keys and trust
09mProtecting APIs with DeviceCheck, App Attest & WebAuthn
44mPractical Security
41mSyncing and Collaboration with CloudKit
52mBehind the Scenes of iOS Security
58m10 Lines of Encryption, 1500 Lines of Key Management
28mShip it Safe
24mPasswords are so 1990
