Skip to content

Commit cde54cc

Browse files
committed
Changing the hashing technique to md5
1 parent 3c03cfb commit cde54cc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

application/core/filters.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -193,12 +193,12 @@ def hash_file(filename):
193193
print("File not found when creating a hash: " + filename)
194194
return ""
195195

196-
sha1Hash = hashlib.new("sha1")
197-
sha1Hash.update(content)
198-
sha1Hashed = sha1Hash.hexdigest()
196+
md5Hash = hashlib.new("md5", usedforsecurity=False)
197+
md5Hash.update(content)
198+
md5Hashed = md5Hash.hexdigest()
199199

200200
# return the hex representation of digest
201-
return sha1Hashed
201+
return md5Hashed
202202

203203

204204
# Takes the URI and appends a param containing the current git hash

0 commit comments

Comments
 (0)