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

search for in the

Mhash İşlevleri> <Öntanımlı Sabitler
Last updated: Tue, 17 Nov 2009

view this page in

Örnekler

Örnek 1 - Bir dizgenin MD5 ve HMAC özetlerini hesaplayıp sonuçları birer onaltılık dizge olarak çıktılamak

<?php
$input 
"what do ya want for nothing?";
$hash mhash(MHASH_MD5$input);
echo 
"MD5 özeti: " bin2hex($hash) . "<br />\n";
$hash mhash(MHASH_MD5$input"Jefe");
echo 
"HMAC özeti: " bin2hex($hash) . "<br />\n";
?>

This will produce:

MD5 özeti: d03cb659cbf9192dcd066272249f8412
HMAC özeti: 750c783e6ab0b503eaa86e310a5db738



add a note add a note User Contributed Notes
Örnekler
There are no user contributed notes for this page.

Mhash İşlevleri> <Öntanımlı Sabitler
Last updated: Tue, 17 Nov 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites