views:

31

answers:

2

I am trying to store a username and password to hash against for future offline logging in. What is the best way to do this in objective c?

I will need the password to be stored securely.

+1  A: 

Well, you can either create a file and store the information there, or you can put it in NSUserDefaults. I guess it depends somewhat on what your program does and how you really want it to work. If you're trying to store sensitive information (like plaintext passwords), you can use Keychain Services.

Carl Norum
A: 

Use Keychain services (or keychain services for iPhone)

JeremyP