mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-08-22 05:51:45 -07:00
fix tests
This commit is contained in:
parent
c9c9f7317a
commit
07ffdeb9d9
3 changed files with 18 additions and 7 deletions
|
@ -106,7 +106,8 @@ def _sha256_digest(key, salt, loops):
|
|||
|
||||
def mysql_sha256_password_hash_hex(password, salt):
|
||||
"""Return a MySQL compatible caching_sha2_password hash in hex format."""
|
||||
assert len(salt) == 20, "Salt must be 20 characters long."
|
||||
if len(salt) != 20:
|
||||
raise ValueError("Salt must be 20 characters long.")
|
||||
|
||||
count = 5
|
||||
iteration = 1000 * count
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue