diff options
author | Patrick Sean Klein <patrick@libklein.com> | 2022-10-01 10:25:36 +0300 |
---|---|---|
committer | Jonathan White <support@dmapps.us> | 2022-10-02 21:37:51 +0300 |
commit | 9366c5c23318a2ba8a6c623a00db502936c843d8 (patch) | |
tree | b32f6c1f6ddef6016d4a8899f0e4d347397db9d0 | |
parent | e254cad39e72bef972df43d17fc54ec36dfc52d1 (diff) |
Increase entropy required for a "good" rating to 75.
-rw-r--r-- | src/core/PasswordHealth.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/PasswordHealth.cpp b/src/core/PasswordHealth.cpp index 94d2c3a47..3225affb3 100644 --- a/src/core/PasswordHealth.cpp +++ b/src/core/PasswordHealth.cpp @@ -101,7 +101,7 @@ PasswordHealth::Quality PasswordHealth::quality() const return Quality::Bad; } else if (m_score < 40) { return Quality::Poor; - } else if (m_score < 65) { + } else if (m_score < 75) { return Quality::Weak; } else if (m_score < 100) { return Quality::Good; @@ -160,8 +160,8 @@ QSharedPointer<PasswordHealth> HealthChecker::evaluate(const Entry* entry) const // Don't allow re-used passwords to be considered "good" // no matter how great their entropy is. - if (health->score() > 64) { - health->setScore(64); + if (health->score() > 74) { + health->setScore(74); } } @@ -181,8 +181,8 @@ QSharedPointer<PasswordHealth> HealthChecker::evaluate(const Entry* entry) const // reduce the score by 2 points for every day that // we get closer to expiry. days<=0 has already // been handled above ("isExpired()"). - if (health->score() > 60) { - health->setScore(60); + if (health->score() > 70) { + health->setScore(70); } health->adjustScore((30 - days) * -2); |