Created
May 2, 2018 00:27
-
-
Save Miopas/9a0f3e7cf12f546a353aa63f26e720fc to your computer and use it in GitHub Desktop.
get md5 value of a string
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
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