SQLDroid and encrypted Database

人走茶凉 提交于 2019-12-10 20:57:56

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/13844735/sqldroid-and-encrypted-database

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