Storing iOS app's user password and username

妖精的绣舞 提交于 2019-12-25 07:52:44

问题


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?


回答1:


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!




回答2:


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



来源:https://stackoverflow.com/questions/35802704/storing-ios-apps-user-password-and-username

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!