diff options
author | Walter Purcaro <vuolter@gmail.com> | 2015-01-31 22:00:59 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2015-01-31 22:00:59 +0100 |
commit | 79725268402043906f619f7c09e848e02ab8a17b (patch) | |
tree | 5288f422b5f33005a19a0de2ddb53fecb99f3a21 /module/plugins/crypter/RelinkUs.py | |
parent | [JustPremium] Rewritten (diff) | |
download | pyload-79725268402043906f619f7c09e848e02ab8a17b.tar.xz |
Spare code cosmetics
Diffstat (limited to 'module/plugins/crypter/RelinkUs.py')
-rw-r--r-- | module/plugins/crypter/RelinkUs.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/module/plugins/crypter/RelinkUs.py b/module/plugins/crypter/RelinkUs.py index 2165445b6..860dff06b 100644 --- a/module/plugins/crypter/RelinkUs.py +++ b/module/plugins/crypter/RelinkUs.py @@ -2,7 +2,6 @@ from __future__ import with_statement -import base64 import binascii import re import os @@ -279,14 +278,11 @@ class RelinkUs(Crypter): self.logDebug("JsEngine returns value [%s]" % jreturn) key = binascii.unhexlify(jreturn) - # Decode crypted - crypted = base64.standard_b64decode(crypted) - # Decrypt Key = key IV = key obj = AES.new(Key, AES.MODE_CBC, IV) - text = obj.decrypt(crypted) + text = obj.decrypt(crypted.decode('base64')) # Extract links text = text.replace("\x00", "").replace("\r", "") |