summarylogtreecommitdiffstats
path: root/pycryptodome.patch
blob: 69ba4f392651d9b772ab35728f7d1a7785f047fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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