Last 5.3 release ever available: PHP 5.3.29 - 5.3 now EOL


Example #1 Computes the MD5 digest and hmac and print it out as hex

"what do ya want for nothing?";
$hash mhash(MHASH_MD5$input);
"The hash is " bin2hex($hash) . "<br />\n";
$hash mhash(MHASH_MD5$input"Jefe");
"The hmac is " bin2hex($hash) . "<br />\n";

Exemplul de mai sus va afișa:

The hash is d03cb659cbf9192dcd066272249f8412 
The hmac is 750c783e6ab0b503eaa86e310a5db738 

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top