Quote:
Originally Posted by lynngobin
I'm working on an app that uses NSURLConnection to send an HTML POST method request containing a user name and password assigned to me as a developer. The app then parses XML returned by the server.
Of course, I'd like to securely store the user name/password combination rather than hardcoding it into the app. I understand that the keychain is one way to store sensitive, user-specifed information, but I'm uncertain how an app can be installed with a pre-defined, secure password. I need the password ready to go without user input.
Can anyone point me in the right direction?
|
Definitely the keychain. I use it in my application, and it is great.
As for storing password as the application runs, you can hard-code the password in and then update a key in the keychain whenever the application runs.
For utilities that interact with the keychain, I'd recommend SFHFKeychainUtils (I did experience a pesky leak with it, however).