we're falling a little bit offtopic, this is more a "how to do that in python" than "how to do that in web2py".
if you can read english docs ..... - http://php.net/manual/en/function.md5.php [image: reject note] <http://www.php.net/manual/en/function.md5.php#>Return Values Returns the hash as a 32-character hexadecimal number. - they pointed you at http://docs.python.org/library/md5.html,where you can find md5.hexdigest() Like digest() <http://docs.python.org/library/md5.html#md5.md5.digest>except the digest is returned as a string of length 32, containing only hexadecimal digits. This may be used to exchange the value safely in email or other non-binary environments. - Actually, you'll find also in that page that md5 is reported as Deprecated since version 2.5: Use the hashlib<http://docs.python.org/library/hashlib.html#module-hashlib>module instead. - so you go to http://docs.python.org/library/hashlib.html#module-hashlib, where you'll find the same hash.hexdigest() Like digest()<http://docs.python.org/library/hashlib.html#hashlib.hash.digest>except the digest is returned as a string of double length, containing only hexadecimal digits. This may be used to exchange the value safely in email or other non-binary environments. - so, code becomes import hashlib msignature=hashlib.md5(appid+orderid+ordercurr+orderamt+app_secret_key).hexdigest() Il giorno martedì 5 giugno 2012 15:02:07 UTC+2, Hassan Alnatour ha scritto: > > Dear Martin , > > what is the hexdigest() and why did you use it >

