devbean / QtCipherSqlitePlugin

A Qt plugin for cipher SQLite.
http://qtciphersqliteplugin.galaxyworld.org
GNU Lesser General Public License v2.1
392 stars 159 forks source link

best crypt options #36

Closed vampiebar closed 3 years ago

vampiebar commented 4 years ago

What is the best algorithm for opening crypto db with this library?

is it strong enough crypt options in example?

  QSqlDatabase glbDB = QSqlDatabase::addDatabase("SQLITECIPHER");
  glbDB.setDatabaseName(__DB_FILE_PATH__);
  glbDB.setPassword("test");
  glbDB.setConnectOptions("QSQLITE_USE_CIPHER=sqlcipher; QSQLITE_ENABLE_REGEXP");
  if (!glbDB.open()) {
      qDebug() << "Can not open connection: " << glbDB.lastError().driverText();
      //exit("CONNECTION_FAILED");
  }
devbean commented 4 years ago

I think it depends, there is no BEST algorithm. But it says the chacha20 is best for mobile, well since SQLCipher prefer AES 256 Bit CBC (SHA1/SHA256/SHA512 HMAC), that's what he thinks best.