mirror of
https://github.com/login-securite/DonPAPI
synced 2025-03-11 06:58:49 +00:00
Fixed type mismatch error
Fixed type mismatch on method deriveKeysFromUserKey
This commit is contained in:
parent
d3079eea95
commit
af571d04c6
@ -158,7 +158,7 @@ class DPAPI:
|
|||||||
key2 = None
|
key2 = None
|
||||||
else:
|
else:
|
||||||
# Assume MD4
|
# Assume MD4
|
||||||
key1 = HMAC.new(pwdhash, (sid + '\0').encode('utf-16le'), SHA1).digest()
|
key1 = HMAC.new(pwdhash.encode('utf-16le'), (sid + '\0').encode('utf-16le'), SHA1).digest()
|
||||||
# For Protected users
|
# For Protected users
|
||||||
tmpKey = pbkdf2_hmac('sha256', pwdhash, sid.encode('utf-16le'), 10000)
|
tmpKey = pbkdf2_hmac('sha256', pwdhash, sid.encode('utf-16le'), 10000)
|
||||||
tmpKey2 = pbkdf2_hmac('sha256', tmpKey, sid.encode('utf-16le'), 1)[:16]
|
tmpKey2 = pbkdf2_hmac('sha256', tmpKey, sid.encode('utf-16le'), 1)[:16]
|
||||||
|
Loading…
Reference in New Issue
Block a user