This is a Qt6 plugin for SQLCipher. Since SQLCipher is a drop-in replacement for SQLite, the Qt SQLite driver is used as the base for this plugin. The current implementation consists of
- SQLCipher 4.12.0 (based in SQLite 3.51.1) as amalgamation from https://github.com/chehrlic/sqlcipher-amalgamation
- libtomcrypt 1.18.2 from https://github.com/libtom/libtomcrypt
- Qt SQLite plugin for Qt 6.8 and above, modified to compile with Qt 6.6 and sligthly changed so it can be loaded as separate plugin ("QSQLCIPHER")
You will need a Qt installation (e.g. installed through the Qt Online installer. Clone this repository and set up the Qt environment.
- cd
- mkdir build
- cd build
- for MinGW: cmake ..\ -G "MinGW Makefiles"
- for MSVC: cmake ..\ -G "NMake Makefiles"
- for Linux: cmake ..\
- cmake --build .
- cmake --install . For windows you have to build the debug and the release plugin (linked against the respective Qt library) by passing '-DCMAKE_BUILD_TYPE=Debug' or '-DCMAKE_BUILD_TYPE=Release' to the first cmake call.
Load the QSqlCipher plugin with QSqlDatabase::addDatabase("QSQLCIPHER").