mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-08-22 05:51:45 -07:00
fix hash
This commit is contained in:
parent
2cb94ccf8d
commit
88f900461d
2 changed files with 3 additions and 4 deletions
|
@ -117,5 +117,4 @@ def mysql_sha256_password_hash_hex(password, salt):
|
|||
iteration = 1000 * count
|
||||
|
||||
digest = _sha256_digest(password, salt, iteration)
|
||||
generated_hash = "$A${0:>03}{1}{2}".format(count, salt, digest).encode()
|
||||
return "0x{0}".format(generated_hash.hex().upper())
|
||||
return "$A${0:>03}${1}{2}".format(count, salt, digest).encode().hex().upper()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue