mirror of
https://github.com/xprism1/ntool.git
synced 2025-06-19 02:35:32 -04:00
keys: fix CTR titlekey gen
This commit is contained in:
parent
4dadc14d3b
commit
c6a1abc562
@ -61,4 +61,4 @@ class CTR: # For tuples: index 0 for retail, index 1 for dev
|
|||||||
tid = hextobytes(titleID).lstrip(b'\x00')
|
tid = hextobytes(titleID).lstrip(b'\x00')
|
||||||
salt = hashlib.md5(secret + tid).digest()
|
salt = hashlib.md5(secret + tid).digest()
|
||||||
titlekey = hashlib.pbkdf2_hmac('sha1', password.encode(), salt, 20, 16)
|
titlekey = hashlib.pbkdf2_hmac('sha1', password.encode(), salt, 20, 16)
|
||||||
return hex(readbe(titlekey))[2:]
|
return hex(readbe(titlekey))[2:].zfill(32)
|
||||||
|
Loading…
Reference in New Issue
Block a user