summaryrefslogtreecommitdiffstats
path: root/module/plugins/container/RSDF.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-12-16 10:25:56 +0100
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-12-27 22:32:04 +0100
commit36bdc18df59837a8ce2f7630e49e753867573e82 (patch)
treef453614944af959756eb7e55367ae014c59d5208 /module/plugins/container/RSDF.py
parent[XFSHoster] Improve a bit (diff)
downloadpyload-36bdc18df59837a8ce2f7630e49e753867573e82.tar.xz
Update containers
Diffstat (limited to 'module/plugins/container/RSDF.py')
-rw-r--r--module/plugins/container/RSDF.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/container/RSDF.py b/module/plugins/container/RSDF.py
index 2401a79ce..b0bfdc3bd 100644
--- a/module/plugins/container/RSDF.py
+++ b/module/plugins/container/RSDF.py
@@ -5,16 +5,16 @@ from __future__ import with_statement
import binascii
import re
-from Crypto.Cipher import AES
+import Crypto.Cipher
from module.plugins.internal.Container import Container
-from module.plugins.internal.utils import encode
+from module.plugins.internal.misc import encode
class RSDF(Container):
__name__ = "RSDF"
__type__ = "container"
- __version__ = "0.33"
+ __version__ = "0.34"
__status__ = "testing"
__pattern__ = r'.+\.rsdf$'
@@ -37,8 +37,8 @@ class RSDF(Container):
KEY = binascii.unhexlify(self.KEY)
IV = binascii.unhexlify(self.IV)
- iv = AES.new(KEY, AES.MODE_ECB).encrypt(IV)
- cipher = AES.new(KEY, AES.MODE_CFB, iv)
+ iv = Crypto.Cipher.AES.new(KEY, Crypto.Cipher.AES.MODE_ECB).encrypt(IV)
+ cipher = Crypto.Cipher.AES.new(KEY, Crypto.Cipher.AES.MODE_CFB, iv)
try:
fs_filename = encode(pyfile.url.strip())