start
This is an old revision of the document!
import hashlib
import sys
with open(sys.argv[1], "rb") as f:
file_hash = hashlib.md5()
while chunk := f.read(8192):
file_hash.update(chunk)
print(file_hash.hexdigest()) # to get a printable str instead of bytes
These pages are a notepad with notes about technology and other stuff.
start.1579674437.txt.gz · Last modified: 2022/12/02 21:02 (external edit)
