On 1 May 2009, at 04:58, Jelle De Laender wrote:
What is the best way to store a password on the iPhone?
I can't take the MD5 hash because I need to be able to work with the
original password.
Should I create a custom class (with 2 strings) and save them with
NSKeyedArchiver with the idea: nobody will read the files (it's
impossible: except when you JailBreak) or what should you do?
Maybe I can simply use the NSUserDefaults?
This is exactly the sort of thing that the Key Chain is designed for.
Take a look at the Keychain Services Programming Guide and the
GenericKeychain example code in the iPhone SDK.
Nicko
_______________________________________________
Cocoa-dev mailing list ([email protected])
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]