What is the best (and quickest) way to setup a simple 4-diget password in my app?
It needs to be editable by the user. And it needs to be savable on the device itself.
Is a NSUserDefaults a safe place to store the password?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You want to add anything to do with password into the user KeyChain on the device-
Keychain Services
iOS will take of decrypting and encrypting the information for you. And when the user sync and or replace his device, the Keychain will be on his new device.