如何在安卓设备上安全地存储信息? [英] How do I store information securely on android device?

查看:51
本文介绍了如何在安卓设备上安全地存储信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在安卓设备上存储信息.什么是存储数据以使用户无法访问(写入/读取)文件的最佳方式.

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.

我查看了共享首选项和 SQLite 数据库,这些似乎是可行的选择.

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

谢谢法比

推荐答案

没有最好的方法来存储安全数据,因为使用 root 手机的用户将始终可以访问您的数据.因此,最好的办法是对您的秘密数据进行某种加密,使其即使被其他人访问也无用.

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.

对于加密/解密,请阅读this.

For Encryption/Decryption, read this.

这篇关于如何在安卓设备上安全地存储信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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