downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Mhash 関数> <定義済み定数
Last updated: Fri, 13 Nov 2009

view this page in

例1 MD5 ダイジェストと hmac を計算し、16 進数で出力する

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

この例の出力は次のようになります。

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.

Mhash 関数> <定義済み定数
Last updated: Fri, 13 Nov 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites