Created
October 31, 2017 07:21
-
-
Save binary-signal/30fd5ea0a3923ede9d9a2e937ca4804b to your computer and use it in GitHub Desktop.
get the md5 hash of a url
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
def hashurl(url): | |
m = hashlib.md5() | |
m.update(url.encode('utf-8')) | |
return m.hexdigest() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment