mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-09-27 11:51:16 -04:00
Limit zxcvbn entropy estimation length
Limit the use of zxcvbn based password entropy estimation to 256 bytes. After this threshold, the average per-byte entropy from the zxcvbn calculation is added for each additional byte. In practice, this produces a slightly higher entropy calculation for purely randomized passwords than zxcvbn would normally calculate. However, the time to calculate is capped leading to a much better user experience and removing unnecessary calculations. Fixes #7712
This commit is contained in:
parent
1009650b5c
commit
65a1d1b0f7
6 changed files with 156 additions and 107 deletions
|
@ -46,6 +46,7 @@ private slots:
|
|||
void testSearchEditEntry();
|
||||
void testAddEntry();
|
||||
void testPasswordEntryEntropy();
|
||||
void testPasswordEntryEntropy_data();
|
||||
void testDicewareEntryEntropy();
|
||||
void testTotp();
|
||||
void testSearch();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue