Android How to use SqlCipher with pre-bundled Sqllite Database?

試著忘記壹切 提交于 2019-12-12 00:22:58

问题


I am creating an app with a prebundle database, i am using this tutorial to achieve the same,

http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/

Now how should i secure this prebundle db using SQLcipher? As in sqlcipher tutorials it assumes that you are creating a new database instead of using an exsisting one.

My aim is to prevent anyone seeing the content of my prebundle db.

This question has some techniques but it is not working for the guy

using sqlcipher to encrypt already existing database and opening it on android

Thanks Pranay


回答1:


My aim is to prevent anyone seeing the content of my prebundle db.

Then do not bother. Anyone can grab your encryption key out of your APK and decrypt the database. SQLCipher is to help the user defend the user's data against attackers.

If you do not want the user to have access to the data, do not put the data on their device.



来源:https://stackoverflow.com/questions/14467005/android-how-to-use-sqlcipher-with-pre-bundled-sqllite-database

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!