Created
June 15, 2014 03:44
-
-
Save FoamyGuy/d9b612f29063f82c4459 to your computer and use it in GitHub Desktop.
This file contains 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 | |
# Our function to get the MD5 hash of a string | |
def getMD5Hash(textToHash=None): | |
return hashlib.md5(textToHash).hexdigest() | |
f = open(sys.argv[1], 'rb') | |
s = f.read() | |
f.close() | |
print getMD5Hash(s) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment