Source/SimpleBase.php
protected function hmac($key = '', $data = '')
    {
        if ($data == '') {
            $this->errorMessage[] = 'DATA FOR HMAC: MISSING!';
            return false;
        }
        if ($key == '') {
            $this->errorMessage[] = 'KEY FOR HMAC: MISSING!';
            return false;
        }
        return hash_hmac('md5', $data, trim($key));
    }
protected function hmac($key = '', $data = '')
    {
        if ($data == '') {
            $this->errorMessage[] = 'DATA FOR HMAC: MISSING!';
            return false;
        }
        if ($key == '') {
            $this->errorMessage[] = 'KEY FOR HMAC: MISSING!';
            return false;
        }
        return hash_hmac('md5', $data, trim($key));
    }
protected function hmac ( $ key = '' , $ data = '' ) { if ( $ data == '' ) { $ this -> errorMessage [ ] = 'DATA FOR HMAC: MISSING!' ; return false ; } if ( $ key == '' ) { $ this -> errorMessage [ ] = 'KEY FOR HMAC: MISSING!' ; return false ; } return hash_hmac ( 'md5' , $ data , trim ( $ key ) ) ; }
HMAC HASH creation

@param string $key  Secret key for encryption
@param string $data String to encode

@return string HMAC hash
HMAC HASH creation