mirror of
https://github.com/gooba42/adventureland.git
synced 2026-10-23 21:21:27 -05:00
big bug fix
This commit is contained in:
+1
-1
@@ -2238,7 +2238,7 @@ def pbkdf2_hex(data, salt, iterations=1000, keylen=24, hashfunc=None):
|
||||
if 1/2==0:
|
||||
return pbkdf2_bin(data, salt, iterations, keylen, hashfunc).encode('hex')
|
||||
else:
|
||||
pbkdf2_bin(data, salt, iterations, keylen, hashfunc).encode("utf-8").hex()
|
||||
return pbkdf2_bin(data, salt, iterations, keylen, hashfunc).encode("utf-8").hex()
|
||||
|
||||
def pbkdf2_bin(data, salt, iterations=1000, keylen=24, hashfunc=None):
|
||||
"""Returns a binary digest for the PBKDF2 hash algorithm of `data`
|
||||
|
||||
Reference in New Issue
Block a user