Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QtCipherSqlitePlugin Crashes on Opening Database
QtWS25 Last Chance

QtCipherSqlitePlugin Crashes on Opening Database

Scheduled Pinned Locked Moved Unsolved General and Desktop
sqlciphersqlsqlitesqlite3
1 Posts 1 Posters 379 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    R-P-H
    wrote on 17 Oct 2022, 14:07 last edited by
    #1

    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;");
    

    https://github.com/devbean/QtCipherSqlitePlugin

    1 Reply Last reply
    0

    1/1

    17 Oct 2022, 14:07

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved