_config['hash_method'] == 'md5') return md5($str); else return hash_hmac($this->_config['hash_method'], $str, $this->_config['hash_key']); } } ?>