From a1703e15d4e9f1afc00a746cac1d1df585bfb546 Mon Sep 17 00:00:00 2001 From: Ivan Lazar Miljenovic Date: Wed, 11 Nov 2020 20:51:19 +0800 Subject: [PATCH] PyCrypto requires RSA values to be long This is at least true for PyCrypto 2.6.1 --- DeDRM_plugin/ineptepub.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 DeDRM_plugin/ineptepub.py diff --git a/DeDRM_plugin/ineptepub.py b/DeDRM_plugin/ineptepub.py old mode 100644 new mode 100755 index 1be1a89..4817ca9 --- a/DeDRM_plugin/ineptepub.py +++ b/DeDRM_plugin/ineptepub.py @@ -310,7 +310,7 @@ def _load_crypto_pycrypto(): total = 0 for byte in bytes: total = (total << 8) + byte - return total + return long(total) def decrypt(self, data): return self._rsa.decrypt(data)