Re: Storing a password (iPhone)
Re: Storing a password (iPhone)
- Subject: Re: Storing a password (iPhone)
- From: Nicko van Someren <email@hidden>
- Date: Mon, 4 May 2009 12:02:20 -0700
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@hidden)
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:
This email sent to email@hidden