Advanced iOS Development: Keychain Access
1h 17mAdvanced2020-01-23
Authors

Bear Cahill
Mobile Application Developer
Course details
Want to give your iOS app the ability to store local, encrypted data like IDs, passwords, or credits card numbers? In this course, instructor Bear Cahill shows you how. Bear demonstrates how to leverage the iOS keychain, which allows you to give your apps a mechanism to store bits of user data in an encrypted database. Using practical examples, he explains how to store keychain values, as well as how to retrieve, update, delete, and share data from the keychain. He wraps up with a series of code-based challenges and solutions that help you put these new concepts into practice. After completing this course, you'll have the knowledge you need to write code to use the keychain in your own iOS apps.
Topics include:
- Creating keychain queries
- Storing generic passwords
- Retrieving data from the keychain
- Handling search results
- Updating and deleting keychain values
- Working with keychain access groups
Topics include:
- Creating keychain queries
- Storing generic passwords
- Retrieving data from the keychain
- Handling search results
- Updating and deleting keychain values
- Working with keychain access groups
Skills covered
iOS DevelopmentComputer SkillsiOSMobile DevelopmentAppleBusiness Software and ToolsDeep Dive (X:Y)
Concepts
Introduction
- using keychain encryption in ios app
- what you should know
iOS Keychain Services
- user experience considerations
- secure enclave
- attribute keys and values
Storing Keychain Values
- xcode project configuration
- ios code overview
- keychain query creation
- storing a generic password
- review keychain database
- challenge- store an internet password
- solution- how to store an internet password
Retrieving Data from the Keychain
- keychain search concepts
- keychain search query
- searching in keychain
- handling search results
- challenge- fetch only data
- solution- how to fetch only data
Updating and Deleting Keychain Values
- update keychain preparation
- updating values in the keychain
- challenge- delete from keychain
- solution- how to delete from keychain
Keychain Sharing
- keychain access groups
- sharing keychain data
- app group data sharing
- sharing data in app group
Building the App Challenges
- overview of challenges
- challenge- add user authentication
- solution- add user authentication
- challenge- add notes to keychain
- solution- add notes to keychain
- challenge- reading keychain items
- solution- read keychain items
- challenge- update and delete keychain items
- solution- update and delete keychain items
Conclusion
- next steps