Android KeyStore - keys not always persisted

后端 未结 2 1904
轻奢々
轻奢々 2021-02-06 13:32

In my app we are using RSA key, that the app generate (using android key store) on the first launch. From unknown reason, the app failed to retrieved the key from the key store

相关标签:
2条回答
  • 2021-02-06 14:04

    Is it that you appear to lose your keys immediately after generation or some time later they are lost? Take a look at this question AndroidKeyStore getEntry is consistently failing after certain point which links to this great article: http://doridori.github.io/android-security-the-forgetful-keystore/

    The moral of this story is if you use the AndroidKeyStore be prepared to lose your keys under certain circumstances!

    0 讨论(0)
  • 2021-02-06 14:10

    Just in case someone will run into the same problem: I've found out that Azure Active Directory library for android suffer from similar issue, and from reading the code I've saw they linked to two issues that are similar to this problem and to another issue we have. Because of that I am planing to use keystore based on p12 file, stored in the app private storage.

    0 讨论(0)
提交回复
热议问题