简体   繁体   English

我可以从SDK使用跨iPhone应用程序的钥匙串吗?

[英]Can I use Keychain Across iPhone Apps, from an SDK?

I am writing an SDK which will ship as a static library. 我正在写一个将作为静态库发布的SDK。 Can I access the keychain to store data so that I can retrieve it in another app which also has my library? 我可以访问钥匙串来存储数据,以便可以在另一个具有我的库的应用程序中检索它吗? Seems like Apple would frown upon this, since I did not sign the apps, but am merely a passenger in the app's code. 似乎苹果公司对此不满意,因为我没有对应用程序进行签名,而只是应用程序代码中的一小部分。

Was looking at using "SFHFKeychainUtils" to help implement this. 正在考虑使用“ SFHFKeychainUtils”来帮助实现这一点。 Any thoughts? 有什么想法吗?

AFAIK, the keychain can only be shared across apps with the same Bundle Seed ID (which would be controlled at the signing level, as you say). AFAIK,钥匙串只能在具有相同Bundle Seed ID(如您所说的在签名级别进行控制)的应用之间共享。 As such, the only apps that would be able to share keychain access would be apps from any single developer. 因此,唯一能够共享钥匙串访问的应用程序将是来自任何单个开发人员的应用程序。 Cross-developer sharing is a no-go. 跨开发人员共享是行不通的。

Check out more iOS security info here in Apple's docs . 在Apple的文档中查看更多iOS安全信息。

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

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