views:

136

answers:

1

Is it possible to work with an encrypted SQLite database directly in Qt? Or, do I have to read it entirely into memory, decrypt in memory, do work, encrypt in memory, write to disk?

+1  A: 

Take a look at the SQLite Encryption Extension (SEE).

Doug Currie
Can this be used with Qt without recompiling any part of Qt, though?
Jake Petroules
I would think so. If you read the doc. pointed to by Doug : "If you already have your application working with public-domain SQLite, then you should be able to drop in SEE in place of SQLite, recompile, and your application will continue to work identically. SEE will not start encrypting databases until you enable the encryption feature using one of the interfaces outlined aboved."
esavard