Skip to content

Instantly share code, notes, and snippets.

@mmguero
Last active October 30, 2024 23:39
Show Gist options
  • Save mmguero/6db8e005005cd1ce5d058ecc05235082 to your computer and use it in GitHub Desktop.
Save mmguero/6db8e005005cd1ce5d058ecc05235082 to your computer and use it in GitHub Desktop.
shake_256 hash of file
import hashlib
import sys
with open(sys.argv[1], 'rb', buffering=0) as f:
print(hashlib.file_digest(f, 'shake_256').hexdigest(8))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment