summarylogtreecommitdiffstats
path: root/pycryptodome.patch
diff options
context:
space:
mode:
authorjakob2018-11-11 22:43:19 +0100
committerjakob2018-11-11 22:43:19 +0100
commitb1c580078d96b9c604388d9319f2ce69cc18a58c (patch)
treef6374f8cedb0aa64d3c2d3a6c4e57fa1121ac7d0 /pycryptodome.patch
parentfb7d6f2c7ba95e382838c945adbeb986d8f49cb9 (diff)
downloadaur-b1c580078d96b9c604388d9319f2ce69cc18a58c.tar.gz
Use pycryptodome explicitly instead of pycrypto
Diffstat (limited to 'pycryptodome.patch')
-rw-r--r--pycryptodome.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/pycryptodome.patch b/pycryptodome.patch
new file mode 100644
index 00000000000..69ba4f39265
--- /dev/null
+++ b/pycryptodome.patch
@@ -0,0 +1,27 @@
+diff --git a/selfspy/__init__.py b/selfspy/__init__.py
+index b77b814..e93dacb 100755
+--- a/selfspy/__init__.py
++++ b/selfspy/__init__.py
+@@ -72,7 +72,7 @@ def make_encrypter(password):
+ if password == "":
+ encrypter = None
+ else:
+- encrypter = Blowfish.new(hashlib.md5(password).digest())
++ encrypter = Blowfish.new(hashlib.md5(password).digest(), Blowfish.MODE_ECB)
+ return encrypter
+
+
+diff --git a/selfspy/stats.py b/selfspy/stats.py
+index 609b59f..a1dc0a3 100755
+--- a/selfspy/stats.py
++++ b/selfspy/stats.py
+@@ -551,7 +551,7 @@ def make_encrypter(password):
+ if password == "":
+ encrypter = None
+ else:
+- encrypter = Blowfish.new(hashlib.md5(password).digest())
++ encrypter = Blowfish.new(hashlib.md5(password).digest(), Blowfish.MODE_ECB)
+ return encrypter
+
+
+