From 6f70ce8ce698eac73acb7e340629abfeb13233af Mon Sep 17 00:00:00 2001 From: Matthieu Bourgain Date: Mon, 22 Apr 2024 18:45:22 +0200 Subject: [PATCH] [ci skip] fix hex method in raw format --- plugins/module_utils/implementations/mysql/hash.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/module_utils/implementations/mysql/hash.py b/plugins/module_utils/implementations/mysql/hash.py index 4fec3de..0068a0c 100644 --- a/plugins/module_utils/implementations/mysql/hash.py +++ b/plugins/module_utils/implementations/mysql/hash.py @@ -117,7 +117,7 @@ def mysql_sha256_password_hash(password, salt): iteration = 1000 * count digest = _sha256_digest(password, salt, iteration) - return "$A${0:>03}${1}{2}".format(count, salt, digest).encode().hex().upper() + return "$A${0:>03}${1}{2}".format(count, salt, digest) def mysql_sha256_password_hash_hex(password, salt):