Is a HMAC MD5 hash more secure than a MD5 with a append key?
Posted: Tue Jul 20, 2004 10:21 am
From the example, Is $hash1 more secure than $hash2 ?
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);
?>