Kodeco Forums

Basic iOS Security: Keychain and Hashing

Security is very important in iOS development. In this tutorial, learn basic iOS Security techniques including accessing the keychain and hashing values.


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/129-basic-ios-security-keychain-and-hashing
1 Like

I liked your post :+1:

Is it common practice to delete the keychain password item on sign out?

Yes it is. When a user signs out it’s a good idea to clear out their data that can be entered again or downloaded from a web server.

If you are implementing biometrics, like a bank app for example, then you would want to handle signing out differently. In this case you’d want to keep the user’s identifier (email, username, etc) and the password hash, then store some state to indicate if the user is “logged” in.

Thanks for the thorough response!

1 Like

This tutorial is more than six months old so questions are no longer supported at the moment for it. Thank you!