简体   繁体   中英

Encrypting only specific tables / fields of an SQLite database

Is it possible?

I read about SQLCipher, but it seems to encrypt the whole database.

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 .

Or rip out the CrypoHelper from android-passwordsafe written by Steven Osborn.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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