ios - 我存储的钥匙串(keychain)数据是否仅限于我的应用程序?

标签 ios cocoa-touch keychain

如果我将一些信息放入钥匙串(keychain)中,我的应用程序是唯一能够访问该数据的应用程序,对吗?

最佳答案

钥匙串(keychain)数据在开发人员的应用程序之间共享。 来自apple documentation :

Keychain data for an app is stored outside of the app’s sandbox. When the user backs up app data using iTunes, the keychain data is also backed up. Before iOS 4.0, keychain data could only be restored to the device from which the backup was made. In iOS 4.0 and later, a keychain item that is password protected can be restored to a different device only if its accessibility is not set to kSecAttrAccessibleAlwaysThisDeviceOnly or any other value that restricts it to the current device. Upgrading an app does not affect that app’s keychain data.

Here是在应用程序之间共享钥匙串(keychain)信息的示例。

关于ios - 我存储的钥匙串(keychain)数据是否仅限于我的应用程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23961224/

相关文章:

macos - 从 Swift 使用 SecKeychainCreate

ios - 使用 Swift - iOS 将自定义颜色和 tintColor 添加到工具栏

ios - 最初不在屏幕上的动画和 View 的自动布局?

objective-c - 是否可以按类过滤 NSArray?

objective-c - 用循环顺序显示图像

ios - 核心数据 : handle the case when iCloud turns off/on

macos - 将项目添加到除默认值之外的特定 OS X 钥匙串(keychain)

macos - 在 Mac OS X 上列出钥匙串(keychain)中的条目

ios - 作为构造函数关闭?

ios - 从 swift cocoa touch 框架导入 jwt