From a9d110566958dea191de8a1ff950b2aaee520bbe Mon Sep 17 00:00:00 2001 From: flashwave Date: Mon, 16 Apr 2018 02:36:50 +0200 Subject: [PATCH] This is a constant, resolves #25. --- utility.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utility.php b/utility.php index 30a774c6..eb34bd6b 100644 --- a/utility.php +++ b/utility.php @@ -40,7 +40,7 @@ function set_cookie_m(string $name, string $value, int $expires): void function password_entropy(string $password): int { - return count(count_chars(utf8_decode($password), 1)) * log(256, 2); + return count(count_chars(utf8_decode($password), 1)) * 8; } function check_mx_record(string $email): bool