简体   繁体   English

仅加密SQLite数据库的特定表/字段

[英]Encrypting only specific tables / fields of an SQLite database

Is it possible? 可能吗?

I read about SQLCipher, but it seems to encrypt the whole database. 我读了有关SQLCipher的文章,但是它似乎可以加密整个数据库。

Is there a way to configure it to encrypt only specific parts of it? 有没有一种方法可以将其配置为仅加密特定部分?

A table or a field will do just fine. 一个表或一个字段就可以了。

最后,我不需要使用SQLite或任何其他技术进行加密,因为我发现我根本不必存储应用程序客户端的机密,只需存储公开的ID即可。

You could use expand the DBHelper and run certain queries through a simple encryption util like the one noted in this answer . 您可以使用扩展DBHelper并通过一个简单的加密工具(例如此答案中提到的工具)运行某些查询。

Or rip out the CrypoHelper from android-passwordsafe written by Steven Osborn. 或从Steven Osborn编写的android-passwordsafe中 删除CrypoHelper

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM