summaryrefslogtreecommitdiffstats
path: root/module/plugins/crypter/FilecryptCc.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-31 22:00:59 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-31 22:00:59 +0100
commit79725268402043906f619f7c09e848e02ab8a17b (patch)
tree5288f422b5f33005a19a0de2ddb53fecb99f3a21 /module/plugins/crypter/FilecryptCc.py
parent[JustPremium] Rewritten (diff)
downloadpyload-79725268402043906f619f7c09e848e02ab8a17b.tar.xz
Spare code cosmetics
Diffstat (limited to 'module/plugins/crypter/FilecryptCc.py')
-rw-r--r--module/plugins/crypter/FilecryptCc.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/module/plugins/crypter/FilecryptCc.py b/module/plugins/crypter/FilecryptCc.py
index 096fd414d..6773ce9b6 100644
--- a/module/plugins/crypter/FilecryptCc.py
+++ b/module/plugins/crypter/FilecryptCc.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# http://filecrypt.cc/Container/64E039F859.html
-import base64
+
import binascii
import re
@@ -167,14 +167,11 @@ class FilecryptCc(Crypter):
# Get key
key = binascii.unhexlify(str(jk))
- # 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
links = filter(lambda x: x != "",