Skip to content

Instantly share code, notes, and snippets.

@Miopas
Created May 2, 2018 00:27
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 Miopas/9a0f3e7cf12f546a353aa63f26e720fc to your computer and use it in GitHub Desktop.
Save Miopas/9a0f3e7cf12f546a353aa63f26e720fc to your computer and use it in GitHub Desktop.
get md5 value of a string
import hashlib
a = 'test'
b = hashlib.md5(a.encode('utf8'))
print(b.hexdigest())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment