/ Published in: PHP
URL: http://www.php.net/manual/en/function.mhash.php
Expand |
Embed | Plain Text
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; }
Comments
Subscribe to comments
You need to login to post a comment.

this is a great tool.. I've been having some HMAC issues on a 5.0 installation and for certain reasons can't upgrade. I think this works for me.