Decrypt a database with Qt 6 and save it as an unencrypted file

44 views Asked by At

I am using Qt 6, and I know that a DB file is encrypted with PRAGMA hexkey='123', and can be decrypted by QSqlDataBase and then queried in memory.

However, I can't save it as an unencrypted DB file, how can I do that?

I tried QSqlQuery.exec("PRAGMA hexkey='123'"), and this is querying in memory, but the files are still encrypted.

0

There are 0 answers