How to save secret key securely in android

后端 未结 5 528
借酒劲吻你
借酒劲吻你 2021-02-05 10:38

I just read this article http://android-developers.blogspot.in/2013/02/using-cryptography-to-store-credentials.html where I learnt to generate security key.

I want to kn

5条回答
  •  没有蜡笔的小新
    2021-02-05 11:22

    Rule one of security. Don't invent your own security. You can't create a way to store a private key safely on any device. When you've just learned to generate a key.

    I just read this article http://android-developers.blogspot.in/2013/02/using-cryptography-to-store-credentials.html where I learnt to generate security key.

    A way that has already been invented is to make the user enter a string (something that is not saved on the phone) and use the the string for encryption.

    The unsaved string method is easily broken by copying the ROM to a powerful machine and using brute force.

提交回复
热议问题