1.
import
md5
2.
3.
mystring
=
"http://twigstechtips.blogspot.com"
4.
5.
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?
1.
import
md5
2.
3.
mystring
=
"http://twigstechtips.blogspot.com"
4.
5.
print
md5.md5(mystring).hexdigest()
That's it. Nice and easy, just like most things in Python.
[ Source ]