简体   繁体   English

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

[英]How to use Keychain access to store passwords in iPhone App?

Can someone tell me how we can store information in Keychain? 有人能告诉我如何在Keychain中存储信息吗? How secure it would be? 它有多安全?

"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." “你剩下的是一个加密的平面文件数据库,专门针对少数数据类型,具有非常笨重且记录错误的API。正如我上面所写的,它的功能可以复制,具有更好的API,没有太多但是,加密部分很重要,因为它的主要目的是保证密钥和密码的安全。一个DIY密钥数据库可以通过用对称密钥加密来保护,然后将该密钥放入密钥链中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM