Last active
October 30, 2024 23:39
-
-
Save mmguero/6db8e005005cd1ce5d058ecc05235082 to your computer and use it in GitHub Desktop.
shake_256 hash of file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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