Last active
August 23, 2020 21:28
-
-
Save robert-claypool/a4a57c7a0b764a08d5d9 to your computer and use it in GitHub Desktop.
SHA1 digest calculation using Python's hashlib
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 | |
print hashlib.sha1(open("c:\\temp\\my.file", "rb").read()).hexdigest() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Alternative: use
sha1sum