GO FURTHER, FASTER: Try the Swift Career Accelerator today! >>

DAY 93

Project 28, part two


In the Secret Swift project you’ve learned about two important security techniques in iOS: biometric authentication and the keychain. Both of these in theory add some sort of security, but only if you use them correctly:

  • If you use biometric authentication but store your data in UserDefaults, it can be read out by bypassing the app.
  • If you store your data in the iOS keychain but don’t put it behind biometric authentication or similar, anyone can launch the app and just take it.

But even with both of those two combined, is our data truly secure? As Gene Spafford once said, “the online truly secure system is one that is powered off, cast in a block of concrete and sealed in a lead-lined room with armed guards.”

That doesn’t mean you shouldn’t try. As you’ve seen, Apple gives us a variety of tools we can use to keep our user data safe, and it’s worth using them all as best as we can.

Today you should work through the wrap up chapter for project 28, complete its review, then work through all three of its challenges.

In this project you learned two crucial techniques for keeping user data safe – make sure you tell others about your progress!

Need help? Tweet me @twostraws!

 

Hacking with Swift is sponsored by RevenueCat.

SPONSORED Take the pain out of configuring and testing your paywalls. RevenueCat's Paywalls allow you to remotely configure and A/B test your entire paywall UI without any code changes or app updates.

Learn more here

Sponsor Hacking with Swift and reach the world's largest Swift community!

100 Days of Swift


The 100 Days of Swift is a free collection of videos, tutorials, tests, and more to help you learn Swift faster. Click here to learn more, or watch the video below.

Back to 100 Days of Swift

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.