Jsondb / jsondb-core

JsonDB a pure java database that stores its data as Json Files

Home Page:http://www.jsondb.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is it possible to encrypt the complete .json file?

jmvermeulen opened this issue · comments

The current implementation only encrypts the properties of a entity marked with @secret.

I would like the complete text file to be unreadable. It this possible to implement, or does this conflict with the design?

Theoretically its possible to do this, however, it would not be good to do this. If the entire file is encrypted then even trivial write operation would require the entire file to be re-written to the disk. JSONDB also supports inserts and deletes which would simply take too long

I think I figured out how to do this without making it too slow. I have removed the wontfix label and added an enhancement label. I hope to implement this someday, although I don't know when I will get to it.