mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-16 02:02:58 -07:00
Reduce cost factor for hashing passwords
* Also reduce memory cost
This commit is contained in:
parent
b70363e005
commit
a3f0a78df0
2 changed files with 2 additions and 2 deletions
|
@ -72,7 +72,7 @@ def pbkdf2_bin(data, salt, iterations=1000, keylen=24, hashfunc=None):
|
|||
rv = u = _pseudorandom(salt + _pack_int(block))
|
||||
for i in xrange(iterations - 1):
|
||||
u = _pseudorandom(''.join(map(chr, u)))
|
||||
rv = starmap(xor, izip(rv, u))
|
||||
rv = list(starmap(xor, izip(rv, u)))
|
||||
buf.extend(rv)
|
||||
return ''.join(map(chr, buf))[:keylen]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue