Storing passwords in iPhone applications

前端 未结 3 864
南笙
南笙 2020-12-12 23:02

I have a simple application, based of the \"Utility Application\" template. It retrieves a password-protected XML file (via NSXMLParser).

I want to allow the user to

3条回答
  •  情书的邮戳
    2020-12-12 23:19

    I agree with Ben. This is exactly what the Keychain is for.

    I would not, under any circumstances simply store passwords in the defaults as dbr suggests. This is highly insecure. You're essentially storing your passwords in the open.

    In addition to Apple's sample code, I also recommend Buzz Anderson's Keychain code: iPhone Keychain Code

提交回复
热议问题