converting data to hex
Erik Max Francis
max at alcyone.com
Fri Jan 31 04:34:33 EST 2003
Peter Abel wrote:
> >>> md5_string='788acf0f5ce8813cbdbddf510b54fb6f'
> >>> eval('0x'+md5_string)
> 160228096136631806570404481192208694127L
Scary. Try long(md5_string, 16) instead.
--
Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
__ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/ \ You can buy any kind of love, but you can't buy love deluxe.
\__/ Sade Adu
Bosskey.net: Counter-Strike / http://www.bosskey.net/cs/
A personal guide to Counter-Strike.
More information about the Python-list
mailing list