我在当前项目中使用 AndroidKeystore
作为提供程序来安全地存储私钥。
现在我想让我的应用程序适用于低至 4.1(API 版本 16)的旧版 Android。
因此,我需要为 AndroidKeystore
找到一个替代方案,但几乎找不到任何可用的解决方案。
是否有关于如何在这些旧版本上实现/模拟/替换 AndroidKeystore
功能的建议?
此外,KeyPairGeneratorSpec
从 v18 开始可用。旧版本的正确替代品是什么?
最佳答案
我终于找到了可行的解决方案。 对于 Android 4.x,有可以保存各种 secret 的凭证存储服务。 到目前为止我找到的最好的描述在这里
http://nelenkov.blogspot.de/2012/05/storing-application-secrets-in-androids.html
关于4.1 API 上的 AndroidKeystore,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27786012/