/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function hmac ($key, $data) { // RFC 2104 HMAC implementation for php. // Creates an md5 HMAC. // Eliminates the need to install mhash to compute a HMAC // Hacked by Lance Rushing $b = 64; // byte length for md5 } $k_ipad = $key ^ $ipad ; $k_opad = $key ^ $opad; }
URL: http://www.php.net/manual/en/function.mhash.php