iphoneobjective-ccocoa-touchkeychain

Can I access the keychain on the iPhone?


This question discusses encrypting data on the iPhone using the crypt() function. As an alternative, is there a keychain on the iPhone and if so, what code would I use to access it in order to store login details and then retrieve them for us in an application?


Solution

  • There is a keychain you can use - for code, the best bet is to check out the GenericKeychain sample application from Apple:

    GenericKeychain sample