Skip to content

Instantly share code, notes, and snippets.

@taddeimania
Created October 27, 2015 17:53
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 taddeimania/236d93ddd67aa40e5952 to your computer and use it in GitHub Desktop.
Save taddeimania/236d93ddd67aa40e5952 to your computer and use it in GitHub Desktop.
MD5 hashing
import md5
m = md5()
m = md5(b"http://joel.io")
m.hexdigest()
# >> 'c9bd9363c90e6a3a7edd3f5114bfffd2'
m.hexdigest()[:10]
# >> 'c9bd9363c9'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment