Skip to content

Instantly share code, notes, and snippets.

@10nin
Created February 17, 2015 14:00
Show Gist options
  • Save 10nin/5df03a6a33d03a51e45b to your computer and use it in GitHub Desktop.
Save 10nin/5df03a6a33d03a51e45b to your computer and use it in GitHub Desktop.
Get md5 digest.
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