[ci skip] fix hex method in raw format

This commit is contained in:
Matthieu Bourgain 2024-04-22 18:45:22 +02:00
commit 6f70ce8ce6
No known key found for this signature in database
GPG key ID: 33BA95C808890C39

View file

@ -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):