Skip to content

Instantly share code, notes, and snippets.

@johnsmith17th
Created May 27, 2013 05:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnsmith17th/5655288 to your computer and use it in GitHub Desktop.
Save johnsmith17th/5655288 to your computer and use it in GitHub Desktop.
make md5 in python
from hashlib import md5
def digest(text):
h = md5()
h.update(text.encode('utf-8'))
return h.hexdigest().upper()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment