Skip to content

Commit

Permalink
Changing the hashing technique to md5
Browse files Browse the repository at this point in the history
  • Loading branch information
ssadhu-sl committed May 30, 2024
1 parent 3c03cfb commit cde54cc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions application/core/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,12 @@ def hash_file(filename):
print("File not found when creating a hash: " + filename)
return ""

sha1Hash = hashlib.new("sha1")
sha1Hash.update(content)
sha1Hashed = sha1Hash.hexdigest()
md5Hash = hashlib.new("md5", usedforsecurity=False)
md5Hash.update(content)
md5Hashed = md5Hash.hexdigest()

# return the hex representation of digest
return sha1Hashed
return md5Hashed


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

0 comments on commit cde54cc

Please sign in to comment.