import hashlib
FILENAME = ''
hasher = hashlib.sha256()
with open(FILENAME, "rb") as f:
for byte_block in iter(lambda: f.read(4096),b""):
hasher.update(byte_block)
print(hasher.hexdigest())
Created
February 13, 2020 07:43
-
-
Save atenni/81c064167aedfc8c4273fe57f79762f6 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment