diff options
author | AndrolGenhald <AndrolGenhald@users.noreply.github.com> | 2019-06-20 03:40:41 +0300 |
---|---|---|
committer | Jonathan White <support@dmapps.us> | 2019-06-20 03:40:41 +0300 |
commit | e40f10657d4e59f60cd1cb7d2b8d7d4a67905b01 (patch) | |
tree | 34ec9b3cfc404efda71c372b9a653b109dbb73d6 /src/core/PasswordGenerator.cpp | |
parent | 7ceca8ff3c0ce971a3cfa38719b45330c73e55ad (diff) |
Fix keepassxc-browser password entropy display (#3107)
* Pass correct entropy amount to keepassxc-browser instead of amount of bits for both password and passphrase.
* Rename json key from "login" to "entropy" (keeping "login" key for backwards compatibility).
* Also make some changes to entropy calculation methods:
- Rename PassphraseGenerator::calculateEntropy to estimateEntropy
- Rename PasswordGenerator::calculateEntropy to estimateEntropy
Diffstat (limited to 'src/core/PasswordGenerator.cpp')
-rw-r--r-- | src/core/PasswordGenerator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/PasswordGenerator.cpp b/src/core/PasswordGenerator.cpp index 1132582d6..e203af672 100644 --- a/src/core/PasswordGenerator.cpp +++ b/src/core/PasswordGenerator.cpp @@ -31,7 +31,7 @@ PasswordGenerator::PasswordGenerator() { } -double PasswordGenerator::calculateEntropy(const QString& password) +double PasswordGenerator::estimateEntropy(const QString& password) { return ZxcvbnMatch(password.toLatin1(), nullptr, nullptr); } |