IPhone: where to store user credentials and password?

What is the best / safest way for my iPhone app to remember user credentials and passwords so that the user doesn't have to re-enter them every time they use my app? (My application will register with the server using these credentials and return some data).

Thanks!

+4
source share
3 answers

The best place would be a keychain. It is automatically encrypted and copied. However, on older versions of iOS, the backup will not be available after recovery. See Keychain Key Programming Guide and Keyword Reference .

+7
source

Try using SFHFKeychainUtils https://github.com/ldandersen/scifihifi-iphone/tree/master/security It goes dead simple and works like NSUserDefaults

+6
source

There are two ways to store user / password.

  • keychain api
  • NSUserDefaults

To learn more about this, open the iOS Developer Library at http://developer.apple.com

+1
source

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


All Articles