In this video, learn how to add the ability to retrieve items from the keychain.
- [Instructor] Adding items to the keychain…is not really useful if we can't retrieve them.…Let's add the missing feature to the keychainFacade class.…I'll implement the new method.…Let's call it string forKey.…But first let me make some place here…and I'm going to add a new public method called string forKey.…Again the key argument is of type String…and the method returns an optional String…and it can also throw.…
Next let's perform the usual validation for the input key.…Guard not key is empty…else we throw an error…of type KeychainFacadeError invalid content.…The we set up the query dictionary.…Again I'll be declaring a variable called queryDictionary…and initialize it using setupQueryDictionary with our key.…
Oh let's fix this one.…It's actually throws.…We have to specify two more active routes…for the search query.…First I specify that I want the query…to return the items data.…The key in this case should be kSecReturnData.…So queryDictionary with the key kSecReturnData…and let's cast it to a swift String type…
Author
Released
10/26/2018- Encryption, code signing, and sandboxing
- Preventing pasteboard leakage with and without coding
- Working with the keychain
- File data protection
- Securing apps using biometrics
- Implementing Touch ID and Face ID
- Performing asymmetric encryption and decryption
Skill Level Intermediate
Duration
Views
-
Introduction
-
Keeping your apps secure1m 13s
-
What you should know1m 21s
-
-
1. iOS Security Fundamentals
-
Security in iOS1m 2s
-
The Secure Boot1m 34s
-
Touch ID and Face ID1m 42s
-
Code signing1m
-
Sandboxing53s
-
User privacy41s
-
-
2. User Data Protection
-
Purpose strings2m 7s
-
The pasteboard spy app2m 24s
-
Hacking the UserDefaults4m 40s
-
-
3. The Keychain
-
Using the Keychain wrapper4m 31s
-
4. File Data Protection
-
5. Securing Apps Using Biometrics
-
Implementing Touch ID2m 51s
-
Implementing Face ID4m 57s
-
-
6. Cryptographic APIs/Interfaces
-
Creating the private key5m 49s
-
Conclusion
-
Next steps50s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Retrieve items from the Keychain