问题
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