From: Apprentice Harper Date: Wed, 25 Nov 2020 08:36:06 +0000 (+0000) Subject: Revert "PyCrypto requires RSA values to be long" X-Git-Url: http://git.xmof.duckdns.org/?a=commitdiff_plain;h=e0c7d7d382ff668a119b0859988a194003d52d08;p=DeDRM.git Revert "PyCrypto requires RSA values to be long" This reverts commit a1703e15d4e9f1afc00a746cac1d1df585bfb546. --- diff --git a/DeDRM_plugin/ineptepub.py b/DeDRM_plugin/ineptepub.py old mode 100755 new mode 100644 index f4665b2..8d88733 --- a/DeDRM_plugin/ineptepub.py +++ b/DeDRM_plugin/ineptepub.py @@ -311,7 +311,7 @@ def _load_crypto_pycrypto(): total = 0 for byte in bytes: total = (total << 8) + byte - return long(total) + return total def decrypt(self, data): return _PKCS1_v1_5.new(self._rsa).decrypt(data, 172)