lavoy
lavoy

Reputation: 1926

Hashing Credentials in Objective C

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.

Upvotes: 0

Views: 356

Answers (2)

JeremyP
JeremyP

Reputation: 86691

Use Keychain services (or keychain services for iPhone)

Upvotes: 1

Carl Norum
Carl Norum

Reputation: 225202

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.

Upvotes: 1

Related Questions