<?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: Leveraging Zend_Auth for building your authentication</title>
	<atom:link href="http://www.encapsulated.org/blog/2009/05/07/leveraging-zend_auth-for-building-your-authentication/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.encapsulated.org/blog/2009/05/07/leveraging-zend_auth-for-building-your-authentication/</link>
	<description>An analog guy in a digital world</description>
	<lastBuildDate>Wed, 18 Aug 2010 19:35:56 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Kirsten</title>
		<link>http://www.encapsulated.org/blog/2009/05/07/leveraging-zend_auth-for-building-your-authentication/comment-page-1/#comment-222</link>
		<dc:creator>Kirsten</dc:creator>
		<pubDate>Thu, 23 Jul 2009 13:17:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.encapsulated.org/blog/?p=63#comment-222</guid>
		<description>Hi Tom, 

I found your details on linkedin. 
I work as recruiter for Harvey nash and I&#039;m looking for the moment a PHP developer with experience in the Zend framework. 
The position in Brussels. 
Are you intrested or do you know someone who can be intrested? Or is someone reading this that can be intrested :)

Best regards, 
Met vriendelijke groetjes, 
Bien à vous, 

Kirsten 
Kirsten.steurs@harveynash.com
02/463.34.29</description>
		<content:encoded><![CDATA[<p>Hi Tom, </p>
<p>I found your details on linkedin.<br />
I work as recruiter for Harvey nash and I&#8217;m looking for the moment a PHP developer with experience in the Zend framework.<br />
The position in Brussels.<br />
Are you intrested or do you know someone who can be intrested? Or is someone reading this that can be intrested <img src='http://www.encapsulated.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Best regards,<br />
Met vriendelijke groetjes,<br />
Bien à vous, </p>
<p>Kirsten<br />
<a href="mailto:Kirsten.steurs@harveynash.com">Kirsten.steurs@harveynash.com</a><br />
02/463.34.29</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://www.encapsulated.org/blog/2009/05/07/leveraging-zend_auth-for-building-your-authentication/comment-page-1/#comment-67</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Sat, 23 May 2009 20:31:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.encapsulated.org/blog/?p=63#comment-67</guid>
		<description>Hi, nice posts there :-) thank&#039;s for the interesting information</description>
		<content:encoded><![CDATA[<p>Hi, nice posts there <img src='http://www.encapsulated.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  thank&#8217;s for the interesting information</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://www.encapsulated.org/blog/2009/05/07/leveraging-zend_auth-for-building-your-authentication/comment-page-1/#comment-66</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Fri, 22 May 2009 12:46:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.encapsulated.org/blog/?p=63#comment-66</guid>
		<description>Hi Lasse,

I totally forgot about your comment.

You are right when saying that with CHAP you achieve safe transportation of the password.
The design of the database and the encryption I used isn&#039;t relevant to CHAP. I don&#039;t see any security problem with using AES for 2-way encrypting the password in the database. Sure, if you have the key, you can decrypt it. If someone finds the key to your house, he can also easily open the door. It&#039;s up to you to safely store the key.

I have stored that key in an XML file. Now I just have to make sure that the XML file is safe. A lot can be achieved via the .htaccess file and setting permissions of the directory correct.

When using CHAP, you could substitute the MD5 hashes for SHA256 hashes. These are indeed more secure. It&#039;s up to you to decide what kind of hashing function you wish to use. I just gave you the idea of how things can be done :)</description>
		<content:encoded><![CDATA[<p>Hi Lasse,</p>
<p>I totally forgot about your comment.</p>
<p>You are right when saying that with CHAP you achieve safe transportation of the password.<br />
The design of the database and the encryption I used isn&#8217;t relevant to CHAP. I don&#8217;t see any security problem with using AES for 2-way encrypting the password in the database. Sure, if you have the key, you can decrypt it. If someone finds the key to your house, he can also easily open the door. It&#8217;s up to you to safely store the key.</p>
<p>I have stored that key in an XML file. Now I just have to make sure that the XML file is safe. A lot can be achieved via the .htaccess file and setting permissions of the directory correct.</p>
<p>When using CHAP, you could substitute the MD5 hashes for SHA256 hashes. These are indeed more secure. It&#8217;s up to you to decide what kind of hashing function you wish to use. I just gave you the idea of how things can be done <img src='http://www.encapsulated.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lasse</title>
		<link>http://www.encapsulated.org/blog/2009/05/07/leveraging-zend_auth-for-building-your-authentication/comment-page-1/#comment-65</link>
		<dc:creator>Lasse</dc:creator>
		<pubDate>Fri, 22 May 2009 12:12:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.encapsulated.org/blog/?p=63#comment-65</guid>
		<description>?</description>
		<content:encoded><![CDATA[<p>?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lasse</title>
		<link>http://www.encapsulated.org/blog/2009/05/07/leveraging-zend_auth-for-building-your-authentication/comment-page-1/#comment-60</link>
		<dc:creator>Lasse</dc:creator>
		<pubDate>Sun, 17 May 2009 16:59:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.encapsulated.org/blog/?p=63#comment-60</guid>
		<description>Yes, isn&#039;t SHA512/256 considered the most secure hashing algorithm these days?

So to conclude; by using CHAP we achieve safe transportation of the password over an unencrypted http connection, but we also sacrifice safe storage of the password in the database? Or at least it is less safe than using hashing and a random salt for each password/user.

Agree?</description>
		<content:encoded><![CDATA[<p>Yes, isn&#8217;t SHA512/256 considered the most secure hashing algorithm these days?</p>
<p>So to conclude; by using CHAP we achieve safe transportation of the password over an unencrypted http connection, but we also sacrifice safe storage of the password in the database? Or at least it is less safe than using hashing and a random salt for each password/user.</p>
<p>Agree?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://www.encapsulated.org/blog/2009/05/07/leveraging-zend_auth-for-building-your-authentication/comment-page-1/#comment-58</link>
		<dc:creator>Tom</dc:creator>
		<pubDate>Sun, 17 May 2009 08:24:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.encapsulated.org/blog/?p=63#comment-58</guid>
		<description>Hi Lasse,

We could use hashing to obfuscate the passwords. But then if you want to authenticate a user via CHAP, the client would need to know the original salt in order to create the same hash from the password as the hash that is in the database.
It is fairly simple to decompile a flex project, and get the salt. That would make it easier for a hacker, because then he would only have to hack the database, and use the salt to + dictionary attack to figure out passwords.

If you decrypt it, the hacker can&#039;t decompile the flex application. He will have to hack both the database server and webserver, making it more complex. But once he managed that, it would again be very easy for him to decipher the passwords, like you said.

On top of that, I just wanted to mention that the most used hashing algorithms (MD5 &amp; SHA-1) were proven to be vulnerable. This doesn&#039;t mean you can&#039;t use it any more. But it&#039;s probably a good idea to not use those any more for salting passwords.</description>
		<content:encoded><![CDATA[<p>Hi Lasse,</p>
<p>We could use hashing to obfuscate the passwords. But then if you want to authenticate a user via CHAP, the client would need to know the original salt in order to create the same hash from the password as the hash that is in the database.<br />
It is fairly simple to decompile a flex project, and get the salt. That would make it easier for a hacker, because then he would only have to hack the database, and use the salt to + dictionary attack to figure out passwords.</p>
<p>If you decrypt it, the hacker can&#8217;t decompile the flex application. He will have to hack both the database server and webserver, making it more complex. But once he managed that, it would again be very easy for him to decipher the passwords, like you said.</p>
<p>On top of that, I just wanted to mention that the most used hashing algorithms (MD5 &amp; SHA-1) were proven to be vulnerable. This doesn&#8217;t mean you can&#8217;t use it any more. But it&#8217;s probably a good idea to not use those any more for salting passwords.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lasse</title>
		<link>http://www.encapsulated.org/blog/2009/05/07/leveraging-zend_auth-for-building-your-authentication/comment-page-1/#comment-57</link>
		<dc:creator>Lasse</dc:creator>
		<pubDate>Sat, 16 May 2009 13:00:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.encapsulated.org/blog/?p=63#comment-57</guid>
		<description>Once again another great blog post, however I am curious to know why you chose to encrypt instead of hashing the password? - Why would you need to know the password to authenticate a flex user? Couldn&#039;t you just use CHAP as explained in one of your previous posts? As I see it, the biggest problem using a hashing algorithm, is that when you don&#039;t know the exact password coming from the user, you can&#039;t salt the password and then hash. So if an attacker where to gain access to the users database, then a simple dictionary attack would get him the password.

But then again, if he does gain access to the database then he might also be able to get the encryption/decryption key, thus making it even easier to retrieve the password.

What are your thoughts?</description>
		<content:encoded><![CDATA[<p>Once again another great blog post, however I am curious to know why you chose to encrypt instead of hashing the password? &#8211; Why would you need to know the password to authenticate a flex user? Couldn&#8217;t you just use CHAP as explained in one of your previous posts? As I see it, the biggest problem using a hashing algorithm, is that when you don&#8217;t know the exact password coming from the user, you can&#8217;t salt the password and then hash. So if an attacker where to gain access to the users database, then a simple dictionary attack would get him the password.</p>
<p>But then again, if he does gain access to the database then he might also be able to get the encryption/decryption key, thus making it even easier to retrieve the password.</p>
<p>What are your thoughts?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ordinary Jack &#187; Blog Archive &#187; Poly1305-AES</title>
		<link>http://www.encapsulated.org/blog/2009/05/07/leveraging-zend_auth-for-building-your-authentication/comment-page-1/#comment-48</link>
		<dc:creator>Ordinary Jack &#187; Blog Archive &#187; Poly1305-AES</dc:creator>
		<pubDate>Thu, 07 May 2009 22:37:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.encapsulated.org/blog/?p=63#comment-48</guid>
		<description>[...] Tom&#039;s Blog » Leveraging Zend_Auth for building your authentication [...]</description>
		<content:encoded><![CDATA[<p>[...] Tom&#39;s Blog » Leveraging Zend_Auth for building your authentication [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
