<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: HSBC PHP CPI Integration Without Installing Software</title>
	<atom:link href="http://www.davebarnes.co.uk/blog/2010/02/hsbc-php-cpi-integration-without-installing-software/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.davebarnes.co.uk/blog/2010/02/hsbc-php-cpi-integration-without-installing-software/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Fri, 12 Feb 2010 14:38:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Barry Ramsay</title>
		<link>http://www.davebarnes.co.uk/blog/2010/02/hsbc-php-cpi-integration-without-installing-software/comment-page-1/#comment-4</link>
		<dc:creator>Barry Ramsay</dc:creator>
		<pubDate>Fri, 12 Feb 2010 14:38:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.davebarnes.co.uk/blog/?p=4#comment-4</guid>
		<description>Thank you for the response Dave,
 I&#039;ve just changed it to 
$ret = base64_encode(hash_hmac(&quot;sha1&quot;, $s1.$abyte0, $abyte0,true));
and am now getting a 28 character code for $ret 
Cheers

Barry</description>
		<content:encoded><![CDATA[<p>Thank you for the response Dave,<br />
 I&#8217;ve just changed it to<br />
$ret = base64_encode(hash_hmac(&#8220;sha1&#8243;, $s1.$abyte0, $abyte0,true));<br />
and am now getting a 28 character code for $ret<br />
Cheers</p>
<p>Barry</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://www.davebarnes.co.uk/blog/2010/02/hsbc-php-cpi-integration-without-installing-software/comment-page-1/#comment-3</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Fri, 12 Feb 2010 13:59:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.davebarnes.co.uk/blog/?p=4#comment-3</guid>
		<description>Hi Barry,

I&#039;m not sure if that will give you the same value - I&#039;ve tried your code on a box that has MHASH with some dummy values and they don&#039;t appear to be giving out the same value. It might be worth looking for an alternative PHP function to generate the hash.</description>
		<content:encoded><![CDATA[<p>Hi Barry,</p>
<p>I&#8217;m not sure if that will give you the same value &#8211; I&#8217;ve tried your code on a box that has MHASH with some dummy values and they don&#8217;t appear to be giving out the same value. It might be worth looking for an alternative PHP function to generate the hash.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Barry Ramsay</title>
		<link>http://www.davebarnes.co.uk/blog/2010/02/hsbc-php-cpi-integration-without-installing-software/comment-page-1/#comment-2</link>
		<dc:creator>Barry Ramsay</dc:creator>
		<pubDate>Fri, 12 Feb 2010 13:35:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.davebarnes.co.uk/blog/?p=4#comment-2</guid>
		<description>Hello

Would this class work with
$ret = base64_encode(hash_hmac(&quot;sha1&quot;, $s1.$abyte0, $abyte0));

instead of
$ret = base64_encode(mhash(MHASH_SHA1, $s1.$abyte0, $abyte0));

as my hosting doesn&#039;t have mhash function working.

I&#039;ve tried it but I &#039;m getting error 10 -&quot; The transaction failed because of invalid input data.&quot; but I&#039;m not sure if this is the hash or not. ANyhelp would be much appreaciated.
Cheers

Barry</description>
		<content:encoded><![CDATA[<p>Hello</p>
<p>Would this class work with<br />
$ret = base64_encode(hash_hmac(&#8220;sha1&#8243;, $s1.$abyte0, $abyte0));</p>
<p>instead of<br />
$ret = base64_encode(mhash(MHASH_SHA1, $s1.$abyte0, $abyte0));</p>
<p>as my hosting doesn&#8217;t have mhash function working.</p>
<p>I&#8217;ve tried it but I &#8216;m getting error 10 -&#8221; The transaction failed because of invalid input data.&#8221; but I&#8217;m not sure if this is the hash or not. ANyhelp would be much appreaciated.<br />
Cheers</p>
<p>Barry</p>
]]></content:encoded>
	</item>
</channel>
</rss>
