Learn how to use Locksmith to securely store sensitive data in your app. Don’t use NSUserDefaults to store things like passwords and API keys! Locksmith stores the data in the keychain which is the secure storage on iOS. We will be doing this in a Swift Xcode project.

We’ll be installing Locksmith with the Cocoa Pod set up so if you missed the video on how to install and set up Cocoapods, check it out here:

Related Links:

Xcode project, source code and video download:

GitHub Page

For more tutorials on how to build iPhone apps, make sure you subscribe and visit my site where you’ll find a community of like minded learners! Learning something new is always more fun with other people!


CodeWithChris is dedicated to teaching beginners and non-programmers all about building iOS apps. On the site, you’ll find a ton of free resources and tutorials to aid you on your journey to learn iOS development. Many people have successfully picked up Swift, Objective-C, Xcode and app building from my course and materials!

Intro & Outro music
“Heartbreaker” by Jahzzar (