summarylogtreecommitdiffstats
path: root/pycryptodome.patch
diff options
context:
space:
mode:
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 000000000000..69ba4f392651
--- /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
+
+
+