mirror of
https://github.com/apprenticeharper/DeDRM_tools
synced 2024-12-26 09:58:55 +01:00
Allow decryption with DSN only.
This commit is contained in:
parent
b71ed3887e
commit
3f591ce66f
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ class KFXZipBook:
|
||||||
print u'Decrypting KFX DRM voucher: {0}'.format(info.filename)
|
print u'Decrypting KFX DRM voucher: {0}'.format(info.filename)
|
||||||
|
|
||||||
for pid in [''] + totalpids:
|
for pid in [''] + totalpids:
|
||||||
for dsn_len,secret_len in [(0,0), (16,0), (16,40), (32,40), (40,40)]:
|
for dsn_len,secret_len in [(0,0), (16,0), (16,40), (32,40), (40,0), (40,40)]:
|
||||||
if len(pid) == dsn_len + secret_len:
|
if len(pid) == dsn_len + secret_len:
|
||||||
break # split pid into DSN and account secret
|
break # split pid into DSN and account secret
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue