钥匙串(keychain)项目属性键 kSecAttrIsInvisible
描述为:
A key whose value is a Boolean indicating the item's visibility.
自 iOS 2.0+ 起,此功能已在 iOS SDK 中提供。
我认为这可能会隐藏钥匙串(keychain)项目,使其不显示在 macOS 系统上,用户可以通过“钥匙串(keychain)访问”应用程序查看钥匙串(keychain)项目。
我的问题是,在 iOS 设备上启用此属性键有何作用(如果有的话)?
最佳答案
我在 Apple Developer forums 上收到了对此的回复:
I assume that this may hide the Keychain item from appearing on a macOS system where the user can view the Keychain items via the Keychain Access app.
正确。
My question is, what does enabling this attribute key do on an iOS device, if anything?
不多。鉴于 iOS 没有通用的方式来查看钥匙串(keychain)项目,我能想到的唯一具体效果与 iCloud 钥匙串(keychain)有关。如果该项目通过 iCloud 钥匙串(keychain)同步到 Mac,您可能希望使其不可见。
关于ios - kSecAttrIsInvisible 在 iOS 中的相关性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52750477/