Android如何使用SqlCipher与预捆绑的Sqllite数据库? [英] Android How to use SqlCipher with pre-bundled Sqllite Database?

查看:181
本文介绍了Android如何使用SqlCipher与预捆绑的Sqllite数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个带有prebundle数据库的应用程序,我正在使用本教程来实现相同的



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



现在我应该如何使用SQLcipher来保护这个prebundle数据库?如同在sqlcipher教程中,它假设您正在创建一个新的数据库,而不是使用一个旧的数据库。



我的目的是防止任何人看到我的prebundle db的内容。 / p>

这个问题有一些技巧,但它不适用于这个人



使用sqlcipher加密已经存在的数据库并在android上打开它



感谢
Pranay

解决方案


我的目标是防止任何人看到我的prebundle db的内容。


然后不要打扰。任何人都可以从您的APK中获取加密密钥,并解密数据库。 SQLCipher旨在帮助用户捍卫用户的数据,防止攻击者。



如果您不希望用户可以访问数据,不要将数据放在设备上。


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

解决方案

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.

这篇关于Android如何使用SqlCipher与预捆绑的Sqllite数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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