我如何在固定的资产文件夹(加密(Ciphering))我的数据库SQLite的? [英] How do I secure my Database sqlite in the Assets Folder (by Ciphering)?
问题描述
我有逆向工程的经验和人服用数据库安静流畅的Android系统的访问。 我想知道有没有什么办法我只能密文我的数据库在创建的时候(不是混淆了整个APK),然后在运行时,我会用我的资料库。
I have had experiences of Reverse engineering and people taking access of your Database quiet fluently in android. I would like to know is there any way i can cipher my Database only(not obfuscating the whole apk) at the time of Creation and then during RunTime I would use My Data Base.
我在数据库知识较少,所以任何的建议是像一个福音来保护我的资产文件夹数据库。
I have lesser knowledge in Databases, so any suggestion would be like a boon to protect my DB in the Assets Folder.
推荐答案
当然,你可以做到这一点。使用 SQL密码。
Surely you can do it. Use SQL Cipher.
在使用,而不是使用常规 android.database.sqlite.SQLiteDatabase
,使用 info.guardianproject.database.sqlcipher.SQLiteDatabase
。欲了解更多信息,请查看这个问题。
While using, instead of using conventional android.database.sqlite.SQLiteDatabase
, use info.guardianproject.database.sqlcipher.SQLiteDatabase
. For more info, look this question.
这篇关于我如何在固定的资产文件夹(加密(Ciphering))我的数据库SQLite的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!