<?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: SHA-256 in MySQL!</title>
	<atom:link href="http://blog.darkrainfall.org/sha-256-in-mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.darkrainfall.org/sha-256-in-mysql/</link>
	<description></description>
	<lastBuildDate>Tue, 31 Jan 2012 13:59:33 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Richard Kernahan</title>
		<link>http://blog.darkrainfall.org/sha-256-in-mysql/comment-page-1/#comment-146</link>
		<dc:creator>Richard Kernahan</dc:creator>
		<pubDate>Sat, 03 Dec 2011 00:42:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.darkrainfall.org/?p=7#comment-146</guid>
		<description>Nice work, Gwynne! Thank you.
Thanks also to Brian.
Note to visitors: when copying Brian&#039;s amended code, ensure you fix up the quotes around the zeroes - some may become back-quotes when copied from a browser.</description>
		<content:encoded><![CDATA[<p>Nice work, Gwynne! Thank you.<br />
Thanks also to Brian.<br />
Note to visitors: when copying Brian&#8217;s amended code, ensure you fix up the quotes around the zeroes &#8211; some may become back-quotes when copied from a browser.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Kim</title>
		<link>http://blog.darkrainfall.org/sha-256-in-mysql/comment-page-1/#comment-132</link>
		<dc:creator>Brian Kim</dc:creator>
		<pubDate>Sun, 20 Nov 2011 02:51:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.darkrainfall.org/?p=7#comment-132</guid>
		<description>for fix problem..

RETURN LOWER(CONCAT(HEX(h0), HEX(h1), HEX(h2), HEX(h3), HEX(h4), HEX(h5), HEX(h6), HEX(h7)));

change to

RETURN LOWER(CONCAT(LPAD(HEX(h0), 8, &#039;0&#039;), LPAD(HEX(h1), 8, &#039;0&#039;), LPAD(HEX(h2), 8, &#039;0&#039;), LPAD(HEX(h3), 8, &#039;0&#039;), LPAD(HEX(h4), 8, &#039;0&#039;), LPAD(HEX(h5), 8, &#039;0&#039;), LPAD(HEX(h6), 8, &#039;0&#039;), LPAD(HEX(h7), 8, &#039;0&#039;)));</description>
		<content:encoded><![CDATA[<p>for fix problem..</p>
<p>RETURN LOWER(CONCAT(HEX(h0), HEX(h1), HEX(h2), HEX(h3), HEX(h4), HEX(h5), HEX(h6), HEX(h7)));</p>
<p>change to</p>
<p>RETURN LOWER(CONCAT(LPAD(HEX(h0), 8, &#8217;0&#8242;), LPAD(HEX(h1), 8, &#8217;0&#8242;), LPAD(HEX(h2), 8, &#8217;0&#8242;), LPAD(HEX(h3), 8, &#8217;0&#8242;), LPAD(HEX(h4), 8, &#8217;0&#8242;), LPAD(HEX(h5), 8, &#8217;0&#8242;), LPAD(HEX(h6), 8, &#8217;0&#8242;), LPAD(HEX(h7), 8, &#8217;0&#8242;)));</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jesse Bethke</title>
		<link>http://blog.darkrainfall.org/sha-256-in-mysql/comment-page-1/#comment-112</link>
		<dc:creator>Jesse Bethke</dc:creator>
		<pubDate>Tue, 17 May 2011 22:18:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.darkrainfall.org/?p=7#comment-112</guid>
		<description>Absolutely wonderful! Saved me hours!</description>
		<content:encoded><![CDATA[<p>Absolutely wonderful! Saved me hours!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PakK_Pl</title>
		<link>http://blog.darkrainfall.org/sha-256-in-mysql/comment-page-1/#comment-105</link>
		<dc:creator>PakK_Pl</dc:creator>
		<pubDate>Mon, 04 Apr 2011 19:11:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.darkrainfall.org/?p=7#comment-105</guid>
		<description>It&#039;s not work correct!!!
for example: SELECT SHA2(&#039;7cbe15d7435fa515db1f76b174d8801a44f90cf2bd3e386c411b54d5f7000740sfcss&#039;, 256)
returns: &#039;6d7de993e583863315f1972ca7dc4ebd13194b0fb9f47d3f3d1dc37e2f99e&#039; (61 chars)
but correct value is: &#039;6d7de9930e583863315f1972ca7dc4eb00d13194b0fb9f47d3f3d1dc37e2f99e&#039; (64 chars)</description>
		<content:encoded><![CDATA[<p>It&#8217;s not work correct!!!<br />
for example: SELECT SHA2(&#8217;7cbe15d7435fa515db1f76b174d8801a44f90cf2bd3e386c411b54d5f7000740sfcss&#8217;, 256)<br />
returns: &#8217;6d7de993e583863315f1972ca7dc4ebd13194b0fb9f47d3f3d1dc37e2f99e&#8217; (61 chars)<br />
but correct value is: &#8217;6d7de9930e583863315f1972ca7dc4eb00d13194b0fb9f47d3f3d1dc37e2f99e&#8217; (64 chars)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gwynne Raskind</title>
		<link>http://blog.darkrainfall.org/sha-256-in-mysql/comment-page-1/#comment-63</link>
		<dc:creator>Gwynne Raskind</dc:creator>
		<pubDate>Fri, 23 Jul 2010 20:41:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.darkrainfall.org/?p=7#comment-63</guid>
		<description>I&#039;m no expert when it comes to encryption myself, unfortunately. It sounds like you&#039;re asking for an HMAC digest. &lt;a href=&quot;http://en.wikipedia.org/wiki/HMAC&quot; rel=&quot;nofollow&quot;&gt;Wikipedia&#039;s article on HMAC&lt;/a&gt; has a thorough (if abstract) description of the algorithm.</description>
		<content:encoded><![CDATA[<p>I&#8217;m no expert when it comes to encryption myself, unfortunately. It sounds like you&#8217;re asking for an HMAC digest. <a href="http://en.wikipedia.org/wiki/HMAC" rel="nofollow">Wikipedia&#8217;s article on HMAC</a> has a thorough (if abstract) description of the algorithm.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://blog.darkrainfall.org/sha-256-in-mysql/comment-page-1/#comment-62</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Fri, 23 Jul 2010 11:54:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.darkrainfall.org/?p=7#comment-62</guid>
		<description>Hi,

I stumbled across this and it&#039;s very nearly what I&#039;m looking for in a project I&#039;m working on. I&#039;m on mySQL 5.1 (Windows) and got the above script working perfectly. The only problem is that I need to hash the strings with a key. 

Sorry, I&#039;m a dreadful noob when it comes to encryption, but is what I&#039;m asking possible?

Many thanks in advance for any pointers you can give.

Dave</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I stumbled across this and it&#8217;s very nearly what I&#8217;m looking for in a project I&#8217;m working on. I&#8217;m on mySQL 5.1 (Windows) and got the above script working perfectly. The only problem is that I need to hash the strings with a key. </p>
<p>Sorry, I&#8217;m a dreadful noob when it comes to encryption, but is what I&#8217;m asking possible?</p>
<p>Many thanks in advance for any pointers you can give.</p>
<p>Dave</p>
]]></content:encoded>
	</item>
</channel>
</rss>

