且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用Keychain访问在iPhone App中存储密码?

更新时间:2023-12-03 20:18:46


  • 简单的iPhone钥匙串代码

  • 苹果:iPhone钥匙扣备份

  • 在iPhone上使用Keychain API有什么意义吗?

    • Simple iPhone Keychain Code
    • Apple: iPhone Keychain Backups
    • Is There Any Point To Using The Keychain API On iPhone?

    • 你剩下的是一个加密的平面文件数据库,专门针对少数数据类型,具有非常笨重且记录错误的API。如上所述,其功能可能是重复的,使用更好的API,没有太多的努力。加密部分是重要的,因为其主要目的是保证密钥和密码的安全。 DIY密钥数据库可以通过使用对称密钥加密来保护,然后将该密钥放入密钥链中。

      "What you’re left with is an encrypted flat-file database, specialized for just a few data types, with a really clunky and badly documented API. As I wrote above, its functionality could be duplicated, with a better API, without much effort. The encryption part is significant, though, since its primary purpose is to keep keys and passwords safe. A DIY key database could be protected by encrypting it with a symmetric key, and then putting that key in the Keychain."