diff options
author | Walter Purcaro <vuolter@gmail.com> | 2015-02-24 03:49:00 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2015-02-24 03:49:00 +0100 |
commit | bc4f746e241a819bb5678125bbb96cb9a1272d82 (patch) | |
tree | f91462c5a8ebcd6c42fcf0bf8bcfd94fe152e69f /module/plugins/container/RSDF.py | |
parent | Merge pull request #1203 from flubshi/stable (diff) | |
download | pyload-bc4f746e241a819bb5678125bbb96cb9a1272d82.tar.xz |
[RSDF] Fix https://github.com/pyload/pyload/issues/1204
Diffstat (limited to 'module/plugins/container/RSDF.py')
-rw-r--r-- | module/plugins/container/RSDF.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/module/plugins/container/RSDF.py b/module/plugins/container/RSDF.py index 8f9bfc0d5..222c8d6ae 100644 --- a/module/plugins/container/RSDF.py +++ b/module/plugins/container/RSDF.py @@ -14,7 +14,7 @@ from module.utils import fs_encode class RSDF(Container): __name__ = "RSDF" __type__ = "container" - __version__ = "0.27" + __version__ = "0.28" __pattern__ = r'.+\.rsdf$' @@ -31,9 +31,10 @@ class RSDF(Container): def decrypt(self, pyfile): KEY = binascii.unhexlify(self.KEY) - IV = AES.new(Key, AES.MODE_ECB).encrypt(binascii.unhexlify(self.IV)) + IV = binascii.unhexlify(self.IV) - cipher = AES.new(KEY, AES.MODE_CFB, IV) + iv = AES.new(KEY, AES.MODE_ECB).encrypt(IV) + cipher = AES.new(KEY, AES.MODE_CFB, iv) try: file = fs_encode(pyfile.url.strip()) |