Created
February 17, 2015 14:00
-
-
Save 10nin/5df03a6a33d03a51e45b to your computer and use it in GitHub Desktop.
Get md5 digest.
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 get_digest(s): | |
import hashlib | |
m = hashlib.md5() | |
m.update(s.encode()) | |
return m.hexdigest() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment