SQLDroid和加密的数据库 [英] SQLDroid and encrypted Database

查看:269
本文介绍了SQLDroid和加密的数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序有一个已经存在的数据库。随着已经存在我的意思是,我没有在我的应用程序创建一个数据库,我只是连接并读取数据。
要设置我的连接使用SQLDroid。

现在我想知道是否有可能到我的数据库加密SQLDroid?否则,我的数据库是加密的,任何人都可以读取数据。

我已经尝试过与SQLCipher工作,但我要创建我在我的应用程序的数据库我不这样做有什么问题...

我知道有可能与一个在线应用程序的工作( - >数据库服务器上),但是这是在我的情况下,没有办法,因为我必须作出一个脱机应用程序内

我很高兴几乎所有的想法。
谢谢你。


解决方案

  

否则我的数据库是加密的,任何人都可以读取数据。


您不能隐藏从设备的用户数据。即使你对数据进行加密,你就必须在你的应用程序中的解密密钥,它可以毫不费力找到。

使用加密的数据库(例如,SQLCipher为Android),允许的用户的保卫的用户的与其他人的数据是完全合理的。

话虽这么说,SQLDroid需要被移植到使用SQLCipher或其他一些加密的SQLite引擎。我看没有证据表明这工作已经完成。

My App has an already existing Database. With "already existing" I mean that I don't create a Database in my App, I just connect to it and read the data. To setup the connection I use SQLDroid.

Now I want to know is there any possibility to encrypt my Database with SQLDroid? Otherwise my Database is unencrypted and anyone could read the data.

I already tried to work with SQLCipher, but there is the problem that I have to create my Database in my App what I'm not doing...

I know that there are possibilities to work with an online App (-> database is on a server), but this is no solution in my case, because I have to make an Offline-App.

I'm glad about every idea. Thank you.

解决方案

Otherwise my Database is unencrypted and anyone could read the data.

You cannot hide data from the user of the device. Even if you encrypt the data, you would have to have the decryption key in your app, which can be found without much effort.

Using encrypted databases (e.g., SQLCipher for Android) to allow the user to defend the user's data against other people is perfectly reasonable.

That being said, SQLDroid would need to be ported to use SQLCipher or some other encrypted SQLite engine. I see no evidence that this work has been done.

这篇关于SQLDroid和加密的数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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