设置密码为Android SQLite数据库密码为、数据库、Android、SQLite

2023-09-04 04:10:47 作者:愿有岁月可回首

我设计一个自定义库,该库来存储机密数据。存储数据我有2个选项。

I am designing one Custom library, in that library to store the confidential data. For storing the data i have 2 options.

1)共享preferences。

1) shared preferences.

2)sqlite3的数据库。

2) Sqlite3 database.

如果,我使用共享preferences MODE_PRIVATE 。它可以通过应用程序开发那些谁使用我的媒体库进行访问。

If , i use SharedPreferences with MODE_PRIVATE . It can be accessed by the application developers those who are use my library.

第二选项是SQLITE3数据库,在这里,我可以存储,但仍数据可以使用由应用开发者通过加入我的库

Second option is Sqlite3 Database, Here i can store but still data can be used by the application developers by adding my library.

所以,我一直在寻找的是,我们有选项来设置密码在Android.If数据库的答案是请指导。

SO, i been looking for the answers that, Do we have option for setting password for the Database in Android.If yes please guide..

感谢你在前进的答案。

推荐答案

嘿跟我同样的问题太多......

Hey the same Problem with me too....

我得到了一个解决方案......

I got an Solution....

解决方案是双重密码:D

The Solution is Dual Passwords :D

在这里,我们所能做的就是加密一切都是保密的数据...

Here all we can do is encrypt all the data that is confidential...

步骤1:询问用户的两个密码(密码1&放大器;密码2),而不是一个用户名和放大器;通...

Step 1 : Ask user for two Passwords ( Password1 & Password2 ) rather than a username & pass...

第2步:您可以使用一个密码,可能是加密所有数据1或2 ...

Step 2 : You can encrypt all the data using a Password that may be 1 or 2...

步骤3:于该数据再次解密同一密码必须用于..

Step 3 : to decrypt that data again the same password must be used..

解决问题了:问题是我们如何存储密码数据库。

THE PROBLEM SOLVED: The problem is how Can we store the Passwords in the database..

我们要做的是第一个密码与其他....加密和解密是指该链接加密

ALL WE DO is encrypt the first password with the other.... ENCRYPTION AND DECRYPTION refer this link

----> http://www.androidsnippets.com/encryptdecrypt-strings < ----

----> http://www.androidsnippets.com/encryptdecrypt-strings <----

只使用它就像魅力

终于等过程如何走的是

询问两个密码... 在加密一个与其他然后散列与一个在数据库比较 继续下一个 当心之前,所有的数据进行解密present用户.....
 
精彩推荐
图片推荐