diff --git a/src/gui/dbsettings/DatabaseSettingsWidgetEncryption.cpp b/src/gui/dbsettings/DatabaseSettingsWidgetEncryption.cpp index e5bd08a10..e2a8cdafe 100644 --- a/src/gui/dbsettings/DatabaseSettingsWidgetEncryption.cpp +++ b/src/gui/dbsettings/DatabaseSettingsWidgetEncryption.cpp @@ -400,8 +400,10 @@ void DatabaseSettingsWidgetEncryption::updateFormatCompatibility(int index, bool if (kdf->uuid() == KeePass2::KDF_ARGON2) { auto argon2Kdf = kdf.staticCast(); - argon2Kdf->setMemory(128 * 1024); - argon2Kdf->setParallelism(static_cast(QThread::idealThreadCount())); + // Default to 64 MiB of memory and 2 threads + // these settings are safe for desktop and mobile devices + argon2Kdf->setMemory(1 << 16); + argon2Kdf->setParallelism(2); } activateChangeDecryptionTime();