简体   繁体   中英

Safe to to store data in the keychain?

I'm developing an application for iOS and macOS, and I needed to store a hash value in the keychain. I noticed from a couple of different places including Apple, that a user can reset a keychain or create a new one. If they reset this will it also remove items that my application has saved in there?

On MacOS users can see keychain values, modify them and delete them using the keychain utility. They can also replace the current keychain with a new, empty, keychain but this would be very disruptive to the user as every stored password and other items such as certificates would now be in th sold keychain file which is not accessible to applications.

On iOS there is no direct keychain access on a non-jail broken device, but as of 10.3 if an app is deleted, its keychain items are removed.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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