Skip to content

Instantly share code, notes, and snippets.

@ajitesh123
Created January 12, 2019 14:39
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 ajitesh123/6b4e0b56ef75d06c3c33164c463d4350 to your computer and use it in GitHub Desktop.
Save ajitesh123/6b4e0b56ef75d06c3c33164c463d4350 to your computer and use it in GitHub Desktop.
>>> import hashlib
>>> def hash(mystring):
... hash_object=hashlib.md5(mystring.encode())
... print(hash_object.hexdigest())
...
>>>
>>> hash("Kellogg first block")
10a4826ea290595ef96e945b31054254
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment