有没有一种方法来安全地存储在Android设备上的用户数据?方法来、安全、数据、用户

由网友(给我空气.)分享简介:我在写一个应用程序,其中用户有时会通过它发出命令。我想给用户选择保存他们的帐单信息(姓名,地址等),这样就可以在以后快速恢复,如果他们想再拍秩序。用户将输入一个密码来保护数据。I'm writing an application wherein users will sometimes make orders thr...

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

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. :)

推荐答案

您可以使用附带的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.

阅读全文

相关推荐

最新文章