diff options
author | Wolfram Rösler <wolfram@roesler-ac.de> | 2020-02-01 16:42:34 +0300 |
---|---|---|
committer | Jonathan White <support@dmapps.us> | 2020-02-01 17:30:12 +0300 |
commit | a81c6469a87783abdd4434b03f616465c830b57f (patch) | |
tree | 7c57aafb3ac3660929f1c256f0619aea967f4164 /src/core/PasswordGenerator.cpp | |
parent | 71a39c37eca9b080a2f06e768ad2e83fe6ff6cb8 (diff) |
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
Diffstat (limited to 'src/core/PasswordGenerator.cpp')
-rw-r--r-- | src/core/PasswordGenerator.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/core/PasswordGenerator.cpp b/src/core/PasswordGenerator.cpp index e203af672..ff271a453 100644 --- a/src/core/PasswordGenerator.cpp +++ b/src/core/PasswordGenerator.cpp @@ -19,7 +19,6 @@ #include "PasswordGenerator.h" #include "crypto/Random.h" -#include <zxcvbn.h> const char* PasswordGenerator::DefaultExcludedChars = ""; @@ -31,11 +30,6 @@ PasswordGenerator::PasswordGenerator() { } -double PasswordGenerator::estimateEntropy(const QString& password) -{ - return ZxcvbnMatch(password.toLatin1(), nullptr, nullptr); -} - void PasswordGenerator::setLength(int length) { if (length <= 0) { |