I have an application where the user can log in but i don't want the user to enter his credentials every time he wants to use the application. 1 time would be sufficient but how(and whats the best way) to save 2 strings that i can revive by starting the application.
From stackoverflow
-
Is there no API from Apple?
I haven't got access to the iPhone documentation, but at least there's an API for Mac OS X.
-
The iPhone has a keychain API just like OS X. Or you could just store them using NSUserDefaults which would be easier but less secure.
Georg : Please don't store them using NSUserDefaults, you wouldn't want too expose passwords of your users when they for example lose their iPhone.bbrown : Just be aware that the Keychain uses Triple-DES, in case that matters. -
See this thread as well: http://stackoverflow.com/questions/523627/storing-passwords-in-iphone-applications/524144#524144
0 comments:
Post a Comment