- [Instructor] Finally, we can call…the sec key create encrypted data function.…I use guard and store the return data in the…constant called completed text data,…guard let encrypted…text data equals…sec key create encrypted data.…Now the first parameter is the public key.…The second is the algorithm,…and the third is the data to be encrypted, textData,…but we have to cast the data to core foundation data.…
The final parameter is the reference to an error.…Though I have to define an optional error variable,…of type unmanaged CF error.…Var error of type…unmanaged CF error.…And I pass its address to the function.…The function should return data.…If the call fails, we throw an error.…
I check if the error reference contains a valid error.…If let encryption error…equals error.…Otherwise, I should tell the caller…that the error is unknown.…So, I create two new error cases.…Forwarded, which has an associated value of type error,…Forwarded, which has an associated value of type error,…and unknown, which denotes…that you don't know the cause of the problem.…
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: Performing asymmetric encryption continued