<?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: Handling Passwords In CodeIgniter</title>
	<atom:link href="http://www.haughin.com/2008/02/17/handling-passwords-in-codeigniter/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.haughin.com/2008/02/17/handling-passwords-in-codeigniter/</link>
	<description>From one geek to many others...</description>
	<lastBuildDate>Thu, 18 Mar 2010 21:45:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Encrypting Passwords in a Database - ShiverCube</title>
		<link>http://www.haughin.com/2008/02/17/handling-passwords-in-codeigniter/comment-page-1/#comment-4080</link>
		<dc:creator>Encrypting Passwords in a Database - ShiverCube</dc:creator>
		<pubDate>Thu, 17 Dec 2009 21:41:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.haughin.com/2008/02/17/handling-passwords-in-codeigniter/#comment-4080</guid>
		<description>[...] in a database as a hashed value with a salt. This is demonstrated clearly in Elliot Haughin&#8217;s Handling Passwords In CodeIgniter post. These same principles can be applied to any type of PHP [...]</description>
		<content:encoded><![CDATA[<p>[...] in a database as a hashed value with a salt. This is demonstrated clearly in Elliot Haughin&#8217;s Handling Passwords In CodeIgniter post. These same principles can be applied to any type of PHP [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elliot</title>
		<link>http://www.haughin.com/2008/02/17/handling-passwords-in-codeigniter/comment-page-1/#comment-3877</link>
		<dc:creator>Elliot</dc:creator>
		<pubDate>Mon, 02 Nov 2009 17:32:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.haughin.com/2008/02/17/handling-passwords-in-codeigniter/#comment-3877</guid>
		<description>&lt;blockquote&gt;&quot;This Part $this-&gt;config-&gt;item(’encryption_key’) will generate different keys each and every time you run it.&quot;&lt;/blockquote&gt;

Actually, it won&#039;t... it will get the $config[&#039;encryption_key&#039;]; value stored in application/config/config.php

So, that part is the same very time, and the encryption will work.</description>
		<content:encoded><![CDATA[<blockquote><p>&#8220;This Part $this->config->item(’encryption_key’) will generate different keys each and every time you run it.&#8221;</p></blockquote>
<p>Actually, it won&#8217;t&#8230; it will get the $config['encryption_key']; value stored in application/config/config.php</p>
<p>So, that part is the same very time, and the encryption will work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Max</title>
		<link>http://www.haughin.com/2008/02/17/handling-passwords-in-codeigniter/comment-page-1/#comment-3861</link>
		<dc:creator>Max</dc:creator>
		<pubDate>Thu, 29 Oct 2009 22:18:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.haughin.com/2008/02/17/handling-passwords-in-codeigniter/#comment-3861</guid>
		<description>Hello Eliot 
The suggestion you provided is completely wrong. You are using codeigniter encryption process which generates different encryption key at a time.  

Here the code you write with concatenating with codeigniter encryption key

$password.$this-&gt;config-&gt;item(&#039;encryption_key&#039;)

This Part $this-&gt;config-&gt;item(&#039;encryption_key&#039;) will generate different keys each and every time you run it. 

My question is if do it and store it on database how the password will be same when a user will enter his /her plaintext password. 

You may answer you will do the encryption again what the user inputs on the login form. It will never same again how you have done it when a user signups. So best practice is to use one way encryption process.

When a user asked for a lost password you can give it to him in other way
like reseting the password. asking his/her security question.then store a random password on database and on session. then ask him to change the password.</description>
		<content:encoded><![CDATA[<p>Hello Eliot<br />
The suggestion you provided is completely wrong. You are using codeigniter encryption process which generates different encryption key at a time.  </p>
<p>Here the code you write with concatenating with codeigniter encryption key</p>
<p>$password.$this-&gt;config-&gt;item(&#8216;encryption_key&#8217;)</p>
<p>This Part $this-&gt;config-&gt;item(&#8216;encryption_key&#8217;) will generate different keys each and every time you run it. </p>
<p>My question is if do it and store it on database how the password will be same when a user will enter his /her plaintext password. </p>
<p>You may answer you will do the encryption again what the user inputs on the login form. It will never same again how you have done it when a user signups. So best practice is to use one way encryption process.</p>
<p>When a user asked for a lost password you can give it to him in other way<br />
like reseting the password. asking his/her security question.then store a random password on database and on session. then ask him to change the password.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rajesh</title>
		<link>http://www.haughin.com/2008/02/17/handling-passwords-in-codeigniter/comment-page-1/#comment-3498</link>
		<dc:creator>Rajesh</dc:creator>
		<pubDate>Mon, 27 Jul 2009 11:30:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.haughin.com/2008/02/17/handling-passwords-in-codeigniter/#comment-3498</guid>
		<description>i am not able to decrypt password please help me</description>
		<content:encoded><![CDATA[<p>i am not able to decrypt password please help me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: batman</title>
		<link>http://www.haughin.com/2008/02/17/handling-passwords-in-codeigniter/comment-page-1/#comment-2838</link>
		<dc:creator>batman</dc:creator>
		<pubDate>Fri, 13 Mar 2009 06:46:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.haughin.com/2008/02/17/handling-passwords-in-codeigniter/#comment-2838</guid>
		<description>excellent article - thank you.  i am a code igniter/PHP newbie (come from a java background), so am just learning the PHP way of doing things.

in principle tho, things remain the same.  1-way encryption is essential, and for users who need to &quot;recover&quot; their passwords - sorry, but no can do.  i can reset it for you, but not recover - it&#039;s a very small priice to pay for the security offered by sha1/salt.</description>
		<content:encoded><![CDATA[<p>excellent article &#8211; thank you.  i am a code igniter/PHP newbie (come from a java background), so am just learning the PHP way of doing things.</p>
<p>in principle tho, things remain the same.  1-way encryption is essential, and for users who need to &#8220;recover&#8221; their passwords &#8211; sorry, but no can do.  i can reset it for you, but not recover &#8211; it&#8217;s a very small priice to pay for the security offered by sha1/salt.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Блог World Programs &#187; Архив блога &#187; CodeIgniter Framework</title>
		<link>http://www.haughin.com/2008/02/17/handling-passwords-in-codeigniter/comment-page-1/#comment-2287</link>
		<dc:creator>Блог World Programs &#187; Архив блога &#187; CodeIgniter Framework</dc:creator>
		<pubDate>Fri, 12 Sep 2008 21:03:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.haughin.com/2008/02/17/handling-passwords-in-codeigniter/#comment-2287</guid>
		<description>[...] Handling Passwords In CodeIgniter [...]</description>
		<content:encoded><![CDATA[<p>[...] Handling Passwords In CodeIgniter [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CodeIgniter Tutorial Links &#171; Brandontruong&#8217;s Weblog</title>
		<link>http://www.haughin.com/2008/02/17/handling-passwords-in-codeigniter/comment-page-1/#comment-2200</link>
		<dc:creator>CodeIgniter Tutorial Links &#171; Brandontruong&#8217;s Weblog</dc:creator>
		<pubDate>Fri, 27 Jun 2008 07:14:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.haughin.com/2008/02/17/handling-passwords-in-codeigniter/#comment-2200</guid>
		<description>[...] Handling Passwords In CodeIgniter [...]</description>
		<content:encoded><![CDATA[<p>[...] Handling Passwords In CodeIgniter [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Some CodeIgniter Tutorial links &#171; Afruj&#8217;s Weblog</title>
		<link>http://www.haughin.com/2008/02/17/handling-passwords-in-codeigniter/comment-page-1/#comment-1991</link>
		<dc:creator>Some CodeIgniter Tutorial links &#171; Afruj&#8217;s Weblog</dc:creator>
		<pubDate>Fri, 02 May 2008 03:44:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.haughin.com/2008/02/17/handling-passwords-in-codeigniter/#comment-1991</guid>
		<description>[...] Handling Passwords In CodeIgniter [...]</description>
		<content:encoded><![CDATA[<p>[...] Handling Passwords In CodeIgniter [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Wales</title>
		<link>http://www.haughin.com/2008/02/17/handling-passwords-in-codeigniter/comment-page-1/#comment-967</link>
		<dc:creator>Michael Wales</dc:creator>
		<pubDate>Thu, 28 Feb 2008 21:35:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.haughin.com/2008/02/17/handling-passwords-in-codeigniter/#comment-967</guid>
		<description>I just use CodeIgniter&#039;s string helper to create a random string of X characters long and store that with the user&#039;s record - giving each user a different salt.</description>
		<content:encoded><![CDATA[<p>I just use CodeIgniter&#8217;s string helper to create a random string of X characters long and store that with the user&#8217;s record &#8211; giving each user a different salt.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hendrik</title>
		<link>http://www.haughin.com/2008/02/17/handling-passwords-in-codeigniter/comment-page-1/#comment-885</link>
		<dc:creator>Hendrik</dc:creator>
		<pubDate>Wed, 20 Feb 2008 06:43:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.haughin.com/2008/02/17/handling-passwords-in-codeigniter/#comment-885</guid>
		<description>Elliot, I take the timestamp of when the user was entered into the db and use it together with the global salt. At least now I don&#039;t have to anticipate the user changing her username as the timestamp never changes.</description>
		<content:encoded><![CDATA[<p>Elliot, I take the timestamp of when the user was entered into the db and use it together with the global salt. At least now I don&#8217;t have to anticipate the user changing her username as the timestamp never changes.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic page generated in 0.080 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2010-03-22 03:02:27 -->
