import md5
mystring = "http://twigstechtips.blogspot.com"
print md5.md5(mystring).hexdigest()
That's it. Nice and easy, just like most things in Python.
[ Source ]
Mainly notes to future-Twig (and for anyone else who may find them useful)
If you've found one or more of my blog posts helpful, why not say thanks by buying me a coffee or beer?
import md5
mystring = "http://twigstechtips.blogspot.com"
print md5.md5(mystring).hexdigest()
That's it. Nice and easy, just like most things in Python.
[ Source ]