Skip to content

Instantly share code, notes, and snippets.

@synodriver
Created August 4, 2022 07:48
Show Gist options
  • Save synodriver/18752af6cb358d2e3d40169657421bdb to your computer and use it in GitHub Desktop.
Save synodriver/18752af6cb358d2e3d40169657421bdb to your computer and use it in GitHub Desktop.
import sys
import hashlib
md = hashlib.md5()
with open(sys.argv[1], "rb") as f:
while chunk := f.read(60 * 1024):
md.update(chunk)
print(md.hexdigest())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment