mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-17 09:24:28 -05:00
Implement Password Health Report
Introduce a password health check to the application that evaluates every entry in a database. Entries that fail various tests are listed for user review and action. Also moves the statistics panel to the new Database -> Reports widget. Recycled entries are excluded from the results. We now have two classes, PasswordHealth to deal with a single password and HealthChecker to deal with all passwords of a database. Tests include passwords that are expired, re-used, and weak. * Closes #551 * Move zxcvbn usage to a centralized class (PasswordHealth) and replace its usages across the application to ensure standardized interpretation of entropy calculations. * Add new icons for the database reports view * Updated the demo database to show off the reports
This commit is contained in:
parent
71a39c37ec
commit
a81c6469a8
38 changed files with 1364 additions and 75 deletions
|
|
@ -19,6 +19,7 @@
|
|||
|
||||
#include "BrowserSettings.h"
|
||||
#include "core/Config.h"
|
||||
#include "core/PasswordHealth.h"
|
||||
|
||||
BrowserSettings* BrowserSettings::m_instance(nullptr);
|
||||
|
||||
|
|
@ -541,7 +542,7 @@ QJsonObject BrowserSettings::generatePassword()
|
|||
m_passwordGenerator.setCharClasses(passwordCharClasses());
|
||||
m_passwordGenerator.setFlags(passwordGeneratorFlags());
|
||||
const QString pw = m_passwordGenerator.generatePassword();
|
||||
password["entropy"] = m_passwordGenerator.estimateEntropy(pw);
|
||||
password["entropy"] = PasswordHealth(pw).entropy();
|
||||
password["password"] = pw;
|
||||
} else {
|
||||
m_passPhraseGenerator.setWordCount(passPhraseWordCount());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue