From the course: Writing Secure Code in iOS by Infosec
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
Data persistence, part 2
From the course: Writing Secure Code in iOS by Infosec
Data persistence, part 2
- Data persistence, part two. Now we have Keychain. This is an encrypted local database with a really good API. It is the preferred mechanism in iOS for saving sensitive data locally. Now that said, the preferred thing is to not save anything sensitive locally at all. The preferred thing is to save it to the cloud to save it to a server where you can have a whole lot more security on it. However, if you do have to save something locally, like some passwords and things, yeah, Keychain is the place to put it. It can store keys that are obtained through other methods. It's used to save cryptographic keys, credentials, secure notes, certificates, any sensitive data, credit card numbers, bank account numbers if you need to save them locally. Here would be a snippet for creating a Keychain. You create a query dictionary that contains and describes the item you're going to store. So we say a key is, and then whatever that string, that key is. And then you can have tags to help differentiate…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
(Locked)
iOS storage overview8m 20s
-
(Locked)
Activity: Exploring the iOS file system8m 32s
-
(Locked)
Activity: Preparing for encryption4m 2s
-
Core Data11m 55s
-
(Locked)
Data persistence, part 113m 23s
-
(Locked)
Data persistence, part 214m 11s
-
(Locked)
Activity: Saving a username and password12m 34s
-
(Locked)
Activity: Verifying a username and password, part 112m 26s
-
(Locked)
Activity: Verifying a username and password, part 29m 7s
-
(Locked)
Encryption overview, part 114m 6s
-
(Locked)
Encryption overview, part 28m 49s
-
(Locked)
Keychain9m 7s
-
(Locked)
Activity: Preparing to use Keychain9m 7s
-
(Locked)
Activity: Save user secrets in Keychain8m 49s
-
(Locked)
Hashing11m 58s
-
(Locked)
Activity: Generating random values8m 49s
-
(Locked)
Activity: Hashing passwords8m 49s
-
Activity: Adding salt to a password hash8m 49s
-
(Locked)
-
-
-
-