QuickBooks/IPP/OAuth.php
protected function _generateSignature_HMAC($sbs, $method, $url, $params = array())
	{
		$secret = $this->_escape($this->_oauth_consumer_secret);
		
		$secret .= '&';
		
		if (!empty($params['oauth_secret']))
		{
			$secret .= $this->_escape($params['oauth_secret']);
		}

		//print('generating signature from [' . $secret . ']' . "\n\n");
		
		return array(
			0 => $sbs, 
			1 => base64_encode(hash_hmac('sha1', $sbs, $secret, true)), 
			);
	}
protected function _generateSignature_HMAC($sbs, $method, $url, $params = array())
	{
		$secret = $this->_escape($this->_oauth_consumer_secret);
		
		$secret .= '&';
		
		if (!empty($params['oauth_secret']))
		{
			$secret .= $this->_escape($params['oauth_secret']);
		}

		//print('generating signature from [' . $secret . ']' . "\n\n");
		
		return array(
			0 => $sbs, 
			1 => base64_encode(hash_hmac('sha1', $sbs, $secret, true)), 
			);
	}
/*
$key = $request->urlencode($consumer_secret).'&'.$request->urlencode($token_secret);
$signature = base64_encode(hash_hmac("sha1", $base_string, $key, true));