简体   繁体   中英

Storing iOS app's user password and username

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?

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!

Keychain is the best option to save any kind of passwords. Use library SSKeychain which is a light weight wrapper for keychain.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM