Encrypt Sqlite with Qt using some open source solution

My application uses Qt 4.6 to access sqlite. Now I have a requirement for encrypting sqlite database. When searching, I find SEE , but it is licensed.

My problem: I want to encrypt sqlite database using QT or some open source solution that is compatible with Qt. Tell me some link or tutorial if you know.

+6
source share
2 answers

Sqlcipher The SQLite extension is what you need. Take a look at QTCentre about creating a sqlite version that supports out-of-box encryption. The main advantage of this version is that it provides a standard qt interface through a user plugin. In addition, it is licensed by BSD.

+5
source

Not sure if this is a good solution, but what about encrypting the file before opening the database and encrypting it again after closing it?

In any case, I don’t think there is a way to make the data 100% safe. There will always be a moment when the data is unencrypted (when your application reads it), and someone can get it at that time.

-2
source

Source: https://habr.com/ru/post/894369/


All Articles