Mainly notes to future-Twig (and for anyone else who may find them useful)
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 ]