mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
Fix handling of small passphrase wordlists
* Fixes #11856 * Set the minimum recommended wordlist size to 1,296 - equal to the EFF Short List * Issue a clear warning when using a smaller wordlist but do not prevent generation of passphrases * Improve wording when removing custom wordlist
This commit is contained in:
@@ -1089,8 +1089,9 @@ void TestCli::testDiceware()
|
||||
}
|
||||
smallWordFile.close();
|
||||
|
||||
// Ensure a warning is shown if the wordlist is too short
|
||||
execCmd(dicewareCmd, {"diceware", "-W", "11", "-w", smallWordFile.fileName()});
|
||||
QCOMPARE(m_stderr->readLine(), QByteArray("Cannot generate valid passphrases because the wordlist is too short\n"));
|
||||
QVERIFY(m_stderr->readLine().length() > 0);
|
||||
}
|
||||
|
||||
void TestCli::testEdit()
|
||||
|
||||
Reference in New Issue
Block a user