<?php$input = "what do ya want for nothing?";$hash = mhash (MHASH_MD5, $input);print "Le hash vaut ".bin2hex ($hash)."<br />\n";$hash = mhash (MHASH_MD5, $input, "Jefe");print "Le hmac vaut ".bin2hex ($hash)."<br />\n";?>