在 Android 中加密/解密共享首选项的安全方法 [英] Secure way to encrypt/decrypt Shared preference in Android

查看:20
本文介绍了在 Android 中加密/解密共享首选项的安全方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在我的一个 android 项目中工作,在该项目中我使用了共享首选项.最近我发现如果你根你的设备,你可以看到共享首选项值.所以基本上共享偏好不再安全.谁能建议我加密/解密共享首选项值的最佳方法是什么?有没有好的库?我见过许多加密/解密共享首选项的解决方案,但没有一个看起来是安全的.请问有什么建议吗?

I am working in one of my android project in which I have used Shared preference. Recently I found that you can see Shared preference values if you root your device. so basically Shared preference is not secure any more. can anyone suggest me what is the best way to encrypt/decrypt Shared preference values? if there any good libraries? I have seen many solutions to encrypt/decrypt Shared preference but no one looks secure. Any suggestions please?

推荐答案

任何 App 都可以访问和操作数据.但是您必须考虑到只有很小一部分(我猜不到 1-2%,但互联网上没有可靠数据)的设备被 root 了,如果用户 root 了他/她的设备,他/她会故意让自己容易受到攻击.这不是安卓系统设置,如果你root,后果自负.点击链接希望此链接对您有所帮助.

The data can be accessed and manipulated by any App. But you have to consider that only a very small percentage (I guess under 1-2%, but there is no reliable data on the interweb) of devices are rooted and if a user roots his device he/she deliberately leaves himself vulnerable. This is not an Android system setting, if you root, you are responsible for the consequences. Click the Link Hope this link will help you.

这篇关于在 Android 中加密/解密共享首选项的安全方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆