UPGRADE YOUR SKILLS: Learn advanced Swift and SwiftUI on Hacking with Swift+! >>

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!

 

BUILD THE ULTIMATE PORTFOLIO APP Most Swift tutorials help you solve one specific problem, but in my Ultimate Portfolio App series I show you how to get all the best practices into a single app: architecture, testing, performance, accessibility, localization, project organization, and so much more, all while building a SwiftUI app that works on iOS, macOS and watchOS.

Get it on Hacking with Swift+

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.