Dans :
Fonctions PHP
Concepts PHP
Fonctions MySQL
Fonctions HTML
Forum PHP/MySQL
Cours PHP/MySQL
Scripts PHP/MySQL
<?php$input = "what do ya want for nothing?";$hash = mhash (MHASH_MD5, $input);echo "Le hash vaut ".bin2hex ($hash)."<br />\n";$hash = mhash (MHASH_MD5, $input, "Jefe");echo "Le hmac vaut ".bin2hex ($hash)."<br />\n";?>