有没有一种方法来安全地存储在Android设备上的用户数据? [英] Is there a way to securely store user data on an Android device?

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

问题描述

我在写一个应用程序,其中用户有时会通过它发出命令。我想给用户选择保存他们的帐单信息(姓名,地址等),这样就可以在以后快速恢复,如果他们想再拍秩序。用户将输入一个密码来保护数据。

I'm writing an application wherein users will sometimes make orders through it. I want to give users the option to save their billing info (name, address, etc.) so that it can be quickly restored later if they want to make another order. The user will enter a password to secure the data.

很明显,我不能只是把这个作为设备上的文件,因为任何人都可以根/查找数据。是否有一个内置的存储是用密码锁定安全数据Android的方法是什么?如果没有,什么是一个好的开始,用于存储该数据的安全使用Java?

Obviously I can't just put this as a file on the device, as anyone can root/find the data. Is there a built-in Android method for storing secure data that is locked with a password? If not, what is a good place to start for storing this data securely using Java?

编辑:为了澄清,当我说,用户将输入密码,我的意思并不是说,我想出了一个办法,以确保数据呢。我只是想传达与该用户将获得对他们的最终数据的方法;现在,我试图找出如何保持逢低我的结束。 :)

To clarify, when I say that the user will enter a password, I don't mean that I've come up with a way to secure the data yet. I'm just trying to convey the method with which the user will secure the data on their end; now I'm trying to figure out how to keep my end of the bargain. :)

推荐答案

您可以使用附带的<一个href="http://developer.android.com/intl/fr/reference/javax/crypto/package-summary.html">javax.crypto班加密的任何敏感信息。

You could use the included javax.crypto classes to encrypt any sensitive information.

您可以查看秘密的来源$ C ​​$ C为Android 应用对于一些实施例

You can view the source code of the Secrets for Android application for some examples.

秘密为Android是一个应用程序   安全地存储和管理密码   而在Android手机上的秘密。它   像使用强大的加密技术   和自动注销,以帮助确保   你的秘密保持安全(假设你   使用一个很好的主密码!)。   上下文相关的提示指引你前进   通过它的运作,因此很容易   使用

Secrets for Android is an application to securely store and manage passwords and secrets on your Android phone. It uses techniques like strong encryption and auto-logout to help ensure that your secrets remain safe (assuming you use a good master password!). Context-sensitive tips guide you along through its operation, making it easy to use.

这篇关于有没有一种方法来安全地存储在Android设备上的用户数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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