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/DLC.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/DLC.py')
-rw-r--r-- | module/plugins/container/DLC.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/container/DLC.py b/module/plugins/container/DLC.py index b01e3098c..d1c34ef50 100644 --- a/module/plugins/container/DLC.py +++ b/module/plugins/container/DLC.py @@ -49,9 +49,9 @@ class DLC(Container): except AttributeError: self.fail(_("Container is corrupted")) - cipher = AES.new(self.KEY, AES.MODE_CBC, self.IV).decrypt(rc) + key = iv = AES.new(self.KEY, AES.MODE_CBC, self.IV).decrypt(rc) - self.data = AES.new(cipher, AES.MODE_CBC, cipher).decrypt(dlc_data).decode('base64') + self.data = AES.new(key, AES.MODE_CBC, iv).decrypt(dlc_data).decode('base64') self.packages = [(entry[0] if entry[0] else pyfile.name, entry[1], entry[0] if entry[0] else pyfile.name) \ for entry in self.getPackages()] |