mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-12 08:16:06 -07:00
Use bytearray for pbkdf2
This commit is contained in:
parent
5f722570d2
commit
e6be03a770
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ def pbkdf2_bin(data, salt, iterations=1000, keylen=24, hashfunc=None):
|
|||
def _pseudorandom(x, mac=mac):
|
||||
h = mac.copy()
|
||||
h.update(x)
|
||||
return list(map(ord, h.digest()))
|
||||
return bytearray(h.digest())
|
||||
buf = []
|
||||
for block in range(1, -(-keylen // mac.digest_size) + 1):
|
||||
rv = u = _pseudorandom(salt + _pack_int(block))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue