Using keychain to store username and password in xcode 4

I do not want to use NSUserDefaults , as I was told that this is not the best way to save the username and password.

So, I was going to use a keychain, but I have never used them before. Can someone please just give one example or point me towards an example? Thanks.

+4
source share
2 answers

I use the open SSKeychain wrapper around the C api used by the keychain.

It is convenient, easy to use and works on Mac OS and iOS.

+11
source

This is the best I have found before the date ... This is a very simple implementation of saving passwords and username for key binding. Remember to include a security infrastructure in your project.

https://web.archive.org/web/20160305031351/http://iosdevelopertips.com/core-services/using-keychain-to-store-username-and-password.html

Keep in mind that this does not work on the simulator.

+3
source

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


All Articles