我将使用 SharedPreferences Keys 来存储我的应用程序信息,这样当我在 onDestroy 之后再次打开应用程序时,信息仍然相同。
我只是想知道使用 SharePreferences 是否安全?我的意思是有没有办法破解或从 SharePreferences 获取 KEYS?
是否所有 Android 平台都有 SharePreferences?
谢谢。
最佳答案
sharedPreferences 不安全.. sharedPreferences 应该只存储未加密的配置/设置数据..
如果你想存储关键数据——你必须将其加密写入数据库/sharedPrefs
顺便说一句.. http://android-developers.blogspot.de/2013/02/using-cryptography-to-store-credentials.html
关于android - SharedPreferences 的工作原理及其安全性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25373145/