We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8858812 commit 3c03cfbCopy full SHA for 3c03cfb
application/core/filters.py
@@ -193,7 +193,8 @@ def hash_file(filename):
193
print("File not found when creating a hash: " + filename)
194
return ""
195
196
- sha1Hash = hashlib.sha1(content)
+ sha1Hash = hashlib.new("sha1")
197
+ sha1Hash.update(content)
198
sha1Hashed = sha1Hash.hexdigest()
199
200
# return the hex representation of digest
0 commit comments