Reformat with black.

This commit is contained in:
tecnovert
2024-11-15 18:52:19 +02:00
parent 6be9a14335
commit 732c87b013
66 changed files with 16755 additions and 9343 deletions

View File

@@ -16,7 +16,7 @@ def rfc2440_hash_password(password, salt=None):
salt = secrets.token_bytes(8)
assert len(salt) == 8
hashbytes = salt + password.encode('utf-8')
hashbytes = salt + password.encode("utf-8")
len_hashbytes = len(hashbytes)
h = hashlib.sha1()
@@ -27,5 +27,5 @@ def rfc2440_hash_password(password, salt=None):
continue
h.update(hashbytes[:count])
break
rv = '16:' + salt.hex() + '60' + h.hexdigest()
rv = "16:" + salt.hex() + "60" + h.hexdigest()
return rv.upper()