Code: Select all
<?php
$data = 'some data to hash';
$key = 'HjkH&#@ih3IHuugUI#yu6898ljg*WIllO091)2';
$hash1 = bin2hex(mhash(MHASH_MD5, $data, $key));
$hash2 = md5($data . $key);
?>Moderator: General Moderators
Code: Select all
<?php
$data = 'some data to hash';
$key = 'HjkH&#@ih3IHuugUI#yu6898ljg*WIllO091)2';
$hash1 = bin2hex(mhash(MHASH_MD5, $data, $key));
$hash2 = md5($data . $key);
?>