From: Ivan Lazar Miljenovic Date: Wed, 11 Nov 2020 12:51:19 +0000 (+0800) Subject: PyCrypto requires RSA values to be long X-Git-Url: http://git.xmof.duckdns.org/?a=commitdiff_plain;h=a1703e15d4e9f1afc00a746cac1d1df585bfb546;p=DeDRM.git PyCrypto requires RSA values to be long This is at least true for PyCrypto 2.6.1 --- 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)