Open mehcode opened 4 years ago
My use case is following: Consider GPG encrypted SQLite file e.g. mydatabase.sqlite.gpg
I will open it with GPG and pass the bytestream to sqlite3_deserialize
to open the database in-memory. After I'm done with modifications I will use sqlite3_serialize
get the bytestream, and GPG encrypt it back to disk.
Without deserialize/serialize support one must first unencrypt the file to disk, and it's not very secure.
https://www.sqlite.org/c3ref/serialize.html
https://www.sqlite.org/c3ref/deserialize.html