From e40f10657d4e59f60cd1cb7d2b8d7d4a67905b01 Mon Sep 17 00:00:00 2001 From: AndrolGenhald Date: Wed, 19 Jun 2019 19:40:41 -0500 Subject: 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 --- src/core/PasswordGenerator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/PasswordGenerator.cpp') 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); } -- cgit v1.2.3