We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d29595 commit d19572aCopy full SHA for d19572a
common/djangoapps/util/memcache.py
@@ -14,9 +14,9 @@ def fasthash(string):
14
"""
15
Hashes `string` into a string representation of a 128-bit digest.
16
17
- md4 = hashlib.new("md4")
18
- md4.update(string.encode('utf-8'))
19
- return md4.hexdigest()
+ blake2b = hashlib.new("blake2b", digest_size=16)
+ blake2b.update(string.encode('utf-8'))
+ return blake2b.hexdigest()
20
21
22
def cleaned_string(val):
0 commit comments