How do I store information securely on android device?

蹲街弑〆低调 提交于 2019-12-13 03:34:46

问题


I want to store information on an android device. What is the best way to store data so that the user is not able to access (write/read) the files.

I've looked at Shared preferences and SQLite Database , these seem like they might be viable options.

Thanks Fabii


回答1:


There's no best way to store secure data as a user with rooted phone will always have access to your data. So the best bet would be to do some kind of Encryption on your secret data to make it useless even if its accessed by others.

For Encryption/Decryption, read this.



来源:https://stackoverflow.com/questions/9909446/how-do-i-store-information-securely-on-android-device

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!