[英]OS X, keychain. store data that can be only changed by my app, not by user, or other app
On iOS we use keychain to store information about in app purchases. 在iOS上,我们使用钥匙串来存储有关应用内购买的信息。 (so user cannot change them ).
(因此用户无法更改它们)。
We now port our app to Mac (publish it in Mac App Store). 现在,我们将应用程序移植到Mac(在Mac App Store中发布)。
Can we use Mac keychain to store in app purchases? 我们可以使用Mac钥匙串存储应用购买的商品吗?
Can we protect keychain data in some way? 我们可以通过某种方式保护钥匙串数据吗?
We want that only our app can change values in keychain, not other apps or user. 我们希望只有我们的应用可以更改钥匙串中的值,而其他应用或用户则不能。
other apps cant access the keychain without asking the user 其他应用无法在不询问用户的情况下访问钥匙串
the user can always change the data - on ios and osx both 用户可以随时更改数据-在ios和osx上都可以
except that on osx it is REALLY easy and on ios it isnt ;) 除了在osx上这确实很容易,在ios上不是;)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.