Reputation: 15
I am using a SQLite database to build an iOS app. Which is the best way to store username and password: in the database or the Keychain? Also, if I store any data in database how can I make it secure like the keychain?
Upvotes: 0
Views: 220
Reputation: 616
Keychain is the best option to save any kind of passwords. Use library SSKeychain which is a light weight wrapper for keychain.
Upvotes: 0
Reputation: 4179
Keychain is better. However, we recommend that you don't save the password. You should always save the hash value and compare the hashes to see if the login is correct!
Upvotes: 2