• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Storing a password (iPhone)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Storing a password (iPhone) (From: Jelle De Laender <email@hidden>)

  • Prev by Date: Re: sheets
  • Next by Date: Re: NSOutlineView with NSImage and NSStrings
  • Previous by thread: Re: Storing a password (iPhone)
  • Next by thread: Re: Storing a password (iPhone)
  • Index(es):
    • Date
    • Thread