Skip to content

Commit 3c03cfb

Browse files
committed
Updating the hashlib code
1 parent 8858812 commit 3c03cfb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

application/core/filters.py

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

196-
sha1Hash = hashlib.sha1(content)
196+
sha1Hash = hashlib.new("sha1")
197+
sha1Hash.update(content)
197198
sha1Hashed = sha1Hash.hexdigest()
198199

199200
# return the hex representation of digest

0 commit comments

Comments
 (0)