<?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: SHA1 class for PHP4</title>
	<atom:link href="http://www.peterelst.com/blog/2003/09/15/sha1-class-for-php4/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.peterelst.com/blog/2003/09/15/sha1-class-for-php4/</link>
	<description>Flash Platform Geek</description>
	<lastBuildDate>Wed, 04 Jan 2012 21:31:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Patricio Dorantes Jamarne</title>
		<link>http://www.peterelst.com/blog/2003/09/15/sha1-class-for-php4/comment-page-1/#comment-6938</link>
		<dc:creator>Patricio Dorantes Jamarne</dc:creator>
		<pubDate>Tue, 15 Nov 2005 04:27:46 +0000</pubDate>
		<guid isPermaLink="false">/?p=12#comment-6938</guid>
		<description>OOk, I found 2 things...
I could not use it as a class but breaking the class part in different functions and modifying some $this-&gt;bla bla bla. I made it work...
BUT:...
The BIG bug I found... is that dechex may return 00FA
and this will result for the sha1 as FA... taking a big difference with the sha1 original algoritm, so... I just did another SO SIMPLE function...

function zeroL($str){ #If missing 0&#039;s

	if(strlen($str)</description>
		<content:encoded><![CDATA[<p>OOk, I found 2 things&#8230;<br />
I could not use it as a class but breaking the class part in different functions and modifying some $this-&gt;bla bla bla. I made it work&#8230;<br />
BUT:&#8230;<br />
The BIG bug I found&#8230; is that dechex may return 00FA<br />
and this will result for the sha1 as FA&#8230; taking a big difference with the sha1 original algoritm, so&#8230; I just did another SO SIMPLE function&#8230;</p>
<p>function zeroL($str){ #If missing 0&#8242;s</p>
<p>	if(strlen($str)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patricio Dorantes</title>
		<link>http://www.peterelst.com/blog/2003/09/15/sha1-class-for-php4/comment-page-1/#comment-6635</link>
		<dc:creator>Patricio Dorantes</dc:creator>
		<pubDate>Sun, 06 Nov 2005 18:14:20 +0000</pubDate>
		<guid isPermaLink="false">/?p=12#comment-6635</guid>
		<description>Weee, I just can not make it work... my server is using php v 4.02, and when i use the class it just give me a blank result :S.
Do you know what I&#039;m doing wrong, if I just copypaste the example to see how it works.</description>
		<content:encoded><![CDATA[<p>Weee, I just can not make it work&#8230; my server is using php v 4.02, and when i use the class it just give me a blank result :S.<br />
Do you know what I&#8217;m doing wrong, if I just copypaste the example to see how it works.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Owen van Dijk</title>
		<link>http://www.peterelst.com/blog/2003/09/15/sha1-class-for-php4/comment-page-1/#comment-8</link>
		<dc:creator>Owen van Dijk</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">/?p=12#comment-8</guid>
		<description>erm...where is the code? or am i missing some hidden link here? :)</description>
		<content:encoded><![CDATA[<p>erm&#8230;where is the code? or am i missing some hidden link here? :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://www.peterelst.com/blog/2003/09/15/sha1-class-for-php4/comment-page-1/#comment-9</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">/?p=12#comment-9</guid>
		<description>Oops, code should be available now :D</description>
		<content:encoded><![CDATA[<p>Oops, code should be available now :D</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blake Matheny</title>
		<link>http://www.peterelst.com/blog/2003/09/15/sha1-class-for-php4/comment-page-1/#comment-41</link>
		<dc:creator>Blake Matheny</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">/?p=12#comment-41</guid>
		<description>Comparing this with the built in version of, there is a bug somewhere in the encoding. Encoding the string &#039;aoo_boo_blih.pdf&#039; gives an equal hash (between sha1 built in and yours), but changing just one character makes it fail. Encoding &#039;ioo_boo_blih.pdf&#039; gives unequal hashes. What&#039;s going on? Thanks.</description>
		<content:encoded><![CDATA[<p>Comparing this with the built in version of, there is a bug somewhere in the encoding. Encoding the string &#8216;aoo_boo_blih.pdf&#8217; gives an equal hash (between sha1 built in and yours), but changing just one character makes it fail. Encoding &#8216;ioo_boo_blih.pdf&#8217; gives unequal hashes. What&#8217;s going on? Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick Smallwood</title>
		<link>http://www.peterelst.com/blog/2003/09/15/sha1-class-for-php4/comment-page-1/#comment-256</link>
		<dc:creator>Patrick Smallwood</dc:creator>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">/?p=12#comment-256</guid>
		<description>Excellent work. We are working with your code to add SHA1 support for older platforms for our game. You will be mentioned in the credits. &lt;br /&gt;
&lt;br /&gt;
Many thanks.</description>
		<content:encoded><![CDATA[<p>Excellent work. We are working with your code to add SHA1 support for older platforms for our game. You will be mentioned in the credits. </p>
<p>Many thanks.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

