You would want to locate this portion of the code:
function hmac ($key, $data)
{
return (bin2hex (mhash(MHASH_MD5, $data, $key)));
}
or now it looks like:
function hmac ($key, $data)
{
return (bin2hex (hash_hmac("md5", $data, $key)));
}
And, then you would want to replace that portion of code with:
function hmac ($key, $data)
{
return mhash_md5( $key, $data);
}
function mhash_md5 ($key, $data)
{
// RFC 2104 HMAC implementation for php.
// Creates an md5 HMAC.
$b = 64; // byte length for md5
if (strlen($key) > $b) {
$key = pack("H*",md5($key));
}
$key = str_pad($key, $b, chr(0x00));
$ipad = str_pad('', $b, chr(0x36));
$opad = str_pad('', $b, chr(0x5c));
$k_ipad = $key ^ $ipad ;
$k_opad = $key ^ $opad;
return md5($k_opad . pack("H*",md5($k_ipad . $data)));
}
See if that works. I found it on another forum.


