We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c03cfb commit cde54ccCopy full SHA for cde54cc
application/core/filters.py
@@ -193,12 +193,12 @@ def hash_file(filename):
193
print("File not found when creating a hash: " + filename)
194
return ""
195
196
- sha1Hash = hashlib.new("sha1")
197
- sha1Hash.update(content)
198
- sha1Hashed = sha1Hash.hexdigest()
+ md5Hash = hashlib.new("md5", usedforsecurity=False)
+ md5Hash.update(content)
+ md5Hashed = md5Hash.hexdigest()
199
200
# return the hex representation of digest
201
- return sha1Hashed
+ return md5Hashed
202
203
204
# Takes the URI and appends a param containing the current git hash
0 commit comments