cipher: Add support for encryption using the raw key format

See issue #264.
This commit is contained in:
Martin Kleusberg
2017-01-22 15:36:54 +01:00
parent ef399d1770
commit d1e3e98006
5 changed files with 165 additions and 73 deletions

View File

@@ -2130,7 +2130,7 @@ void MainWindow::editEncryption()
// Attach a new database using the new settings
qApp->processEvents();
if(ok)
ok = db.executeSQL(QString("ATTACH DATABASE '%1' AS sqlitebrowser_edit_encryption KEY '%2';").arg(db.currentFile() + ".enctemp").arg(dialog.password()),
ok = db.executeSQL(QString("ATTACH DATABASE '%1' AS sqlitebrowser_edit_encryption KEY %2;").arg(db.currentFile() + ".enctemp").arg(dialog.password()),
false, false);
qApp->processEvents();
if(ok)