Android KeyStore - keys not always persisted

后端 未结 2 1945
轻奢々
轻奢々 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!

提交回复
热议问题