]> xmof Git - DeDRM.git/commitdiff
Allow decryption with DSN only.
authorDan Walters <dan@walters.io>
Fri, 14 Jun 2019 19:20:56 +0000 (14:20 -0500)
committerDan Walters <dan@walters.io>
Fri, 14 Jun 2019 19:20:56 +0000 (14:20 -0500)
dedrm_src/kfxdedrm.py

index 98ae9f2e803cb799dab5de19575eae56ab06e2e6..4648893e52cea547e954688b5c6cc2082c2c77ed 100644 (file)
@@ -68,7 +68,7 @@ class KFXZipBook:
         print u'Decrypting KFX DRM voucher: {0}'.format(info.filename)
 
         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:
                     break       # split pid into DSN and account secret
             else: