Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone: Where to store username and password credentials?

What is the best/most secure way for my iPhone app to remember Username and Password credentials, so that the user will not have to reenter them every time they use my app? (My app will be logging in to a server using these credentials and returning some data).

Thanks!

like image 849
joshim5 Avatar asked Dec 10 '22 11:12

joshim5


1 Answers

The best place would be the keychain. It is automatically encrypted and backed up. However, on older iOS versions, the backup would not be accessible after a restore. See the Keychain Services Programming Guide and Keychain Services Reference.

like image 186
ughoavgfhw Avatar answered Dec 28 '22 02:12

ughoavgfhw