How to save username and password in sqlite database in iphone

I am creating an iPhone application that uses SQLite. Only registered users can log in to my application. First, the user will be shown a splash screen with a progress bar that will check all the data from the SQLite database. If the user is not logged in, he must first log in so that he can log in to the application. If he is already registered, his credentials will be already saved in the database and accessible from there, and he will be able to enter the application. But I donโ€™t know how to save username and password in SQLite database. Please help me in solving this problem or provide a link containing the username and password in the SQLite database.

thanks

+4
source share
1 answer

To store usernames / passwords, you usually use a keychain. Take a look at this and separate it from the SQLite database.

http://log.scifihifi.com/post/55837387/simple-iphone-keychain-code

+3
source

Source: https://habr.com/ru/post/1346185/


All Articles