Community
import hashlib
file = open("your_file_path", "rb") # Replace 'your_file_path' by the path of your file.
to_hash = file.read()
file.close()
m = hashlib.md5() # You can use other format instead of md5 (sha1, sha224, sha256, sha384 and sha512)
m.update(to_hash)
md5 = m.hexdigest()
print md5
Can't find what you're looking for? Ask the community or share your knowledge.