Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRASH when when using SQLITECIPHER #49

Open
R-P-H opened this issue Oct 17, 2022 · 0 comments
Open

CRASH when when using SQLITECIPHER #49

R-P-H opened this issue Oct 17, 2022 · 0 comments

Comments

@R-P-H
Copy link

R-P-H commented Oct 17, 2022

I compiled the plugin as detailed and copied the sqlitecipher.dll to the plugins/sqldrivers folder. I use the code below to open an existing encrypted database (encrypted using db browser for SQLCipher). And it works great.

However, when I try and run the program on another machine (with all the necessary .dlls copied over as well) it crashes on start-up when trying to open the database. Why is the exact same program and libraries not working on my other machine ? (Both Windows 10 64-bit).

QSqlDatabase db = QSqlDatabase::addDatabase("SQLITECIPHER");
db.setDatabaseName("myDB");
db.setPassword("myDBPassword");
db.setConnectOptions("QSQLITE_USE_CIPHER=sqlcipher; SQLCIPHER_LEGACY=1;");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant