From e0c7d7d382ff668a119b0859988a194003d52d08 Mon Sep 17 00:00:00 2001 From: Apprentice Harper Date: Wed, 25 Nov 2020 08:36:06 +0000 Subject: [PATCH] Revert "PyCrypto requires RSA values to be long" This reverts commit a1703e15d4e9f1afc00a746cac1d1df585bfb546. --- DeDRM_plugin/ineptepub.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100755 => 100644 DeDRM_plugin/ineptepub.py 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)