<?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: Php password generator</title>
	<atom:link href="http://www.emanueleferonato.com/2006/08/02/php-password-generator/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.emanueleferonato.com/2006/08/02/php-password-generator/</link>
	<description>italian geek and PROgrammer</description>
	<lastBuildDate>Sun, 14 Mar 2010 14:04:42 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: big.nerd</title>
		<link>http://www.emanueleferonato.com/2006/08/02/php-password-generator/comment-page-1/#comment-426530</link>
		<dc:creator>big.nerd</dc:creator>
		<pubDate>Wed, 08 Apr 2009 13:20:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2006/08/02/php-password-generator/#comment-426530</guid>
		<description>Excellent Function, thank you!, Also, thanks to &#039;somebody&#039; for the optimization.

One note though...

I would remove 1&#039;s, I&#039;s, O&#039;s and 0&#039;s, with some screen&#039;s, and fonts, these can look very similar, especially when generating a random password to give to a user.

If the password is being used internally, or for a technically advanced individual, or even for some other function (such as a custom password salt) you can always increase the potential password combination&#039;s by adding them back in via the $use_custom variable, in which case special char&#039;s would be recommended for use anyways, and as well, it can be a bit of work, but non-english char&#039;s.

Keep up the good work!! Thanks again!

big.nerd</description>
		<content:encoded><![CDATA[<p>Excellent Function, thank you!, Also, thanks to &#8217;somebody&#8217; for the optimization.</p>
<p>One note though&#8230;</p>
<p>I would remove 1&#8217;s, I&#8217;s, O&#8217;s and 0&#8217;s, with some screen&#8217;s, and fonts, these can look very similar, especially when generating a random password to give to a user.</p>
<p>If the password is being used internally, or for a technically advanced individual, or even for some other function (such as a custom password salt) you can always increase the potential password combination&#8217;s by adding them back in via the $use_custom variable, in which case special char&#8217;s would be recommended for use anyways, and as well, it can be a bit of work, but non-english char&#8217;s.</p>
<p>Keep up the good work!! Thanks again!</p>
<p>big.nerd</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Unreal Media</title>
		<link>http://www.emanueleferonato.com/2006/08/02/php-password-generator/comment-page-1/#comment-342279</link>
		<dc:creator>Unreal Media</dc:creator>
		<pubDate>Mon, 24 Nov 2008 15:55:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2006/08/02/php-password-generator/#comment-342279</guid>
		<description>Great tool. I love the flexibility.</description>
		<content:encoded><![CDATA[<p>Great tool. I love the flexibility.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: somebody</title>
		<link>http://www.emanueleferonato.com/2006/08/02/php-password-generator/comment-page-1/#comment-283819</link>
		<dc:creator>somebody</dc:creator>
		<pubDate>Tue, 23 Sep 2008 17:06:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2006/08/02/php-password-generator/#comment-283819</guid>
		<description>an optimization for your code, same functionality, consume less memory and should be faster.

function generatePassword($length = 8,$use_upper = true,$use_lower = true, $use_number = true, $use_custom=&quot;&quot;){
		$seed = &#039;&#039;;
		$seed .= ($use_upper ? &#039;ABCDEFGHIJKLMNOPQRSTUVWXYZ&#039; : &#039;&#039;);
		$seed .= ($use_lower ? &#039;abcdefghijklmnopqrstuvwxyz&#039; : &#039;&#039;);
		$seed .= ($use_number ? &#039;0123456789&#039; : &#039;&#039;);
		$seed .= ($use_custom ? $use_custom : &#039;&#039;);
		$seed_length = strlen($seed);
		$password = &#039;&#039;;
		for($x = 0; $x &lt; $length; $x++){
			$password .= $seed[rand(0, $seed_length-1)];
		}
		return $password;
	}</description>
		<content:encoded><![CDATA[<p>an optimization for your code, same functionality, consume less memory and should be faster.</p>
<p>function generatePassword($length = 8,$use_upper = true,$use_lower = true, $use_number = true, $use_custom=&#8221;"){<br />
		$seed = &#8221;;<br />
		$seed .= ($use_upper ? &#8216;ABCDEFGHIJKLMNOPQRSTUVWXYZ&#8217; : &#8221;);<br />
		$seed .= ($use_lower ? &#8216;abcdefghijklmnopqrstuvwxyz&#8217; : &#8221;);<br />
		$seed .= ($use_number ? &#8216;0123456789&#8242; : &#8221;);<br />
		$seed .= ($use_custom ? $use_custom : &#8221;);<br />
		$seed_length = strlen($seed);<br />
		$password = &#8221;;<br />
		for($x = 0; $x &lt; $length; $x++){<br />
			$password .= $seed[rand(0, $seed_length-1)];<br />
		}<br />
		return $password;<br />
	}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: J. Saxberg</title>
		<link>http://www.emanueleferonato.com/2006/08/02/php-password-generator/comment-page-1/#comment-33413</link>
		<dc:creator>J. Saxberg</dc:creator>
		<pubDate>Sun, 02 Sep 2007 19:58:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2006/08/02/php-password-generator/#comment-33413</guid>
		<description>function makePasswd ($length = 6, $useUpper = false, $useLower = true, $useNumber = true, $useCustom = &#039;&#039;) {
		$upper = &#039;ABCDEFGHIJKLMNOPQRSTUVWXYZ&#039;;
		$lower = &#039;abcdefghijklmnopqrstuvwxyz&#039;;
		$number = &#039;0123456789&#039;;
		$seed = &#039;&#039;;
		$password = &#039;&#039;;
		$seedLength = 0;
		if ($useUpper) {
			$seedLength  = 26;
			$seed .= $upper;
		}
		if ($useLower) {
			$seedLength  = 26;
			$seed .= $lower;
		}
		if ($useNumber) {
			$seedLength  = 10;
			$seed .= $number;
		}
		if ($useCustom != &#039;&#039;) {
			$seedLength  = strlen($useCustom);
			$seed .= $use_custom;
		}
		for ($x = 1; $x </description>
		<content:encoded><![CDATA[<p>function makePasswd ($length = 6, $useUpper = false, $useLower = true, $useNumber = true, $useCustom = &#8221;) {<br />
		$upper = &#8216;ABCDEFGHIJKLMNOPQRSTUVWXYZ&#8217;;<br />
		$lower = &#8216;abcdefghijklmnopqrstuvwxyz&#8217;;<br />
		$number = &#8216;0123456789&#8242;;<br />
		$seed = &#8221;;<br />
		$password = &#8221;;<br />
		$seedLength = 0;<br />
		if ($useUpper) {<br />
			$seedLength  = 26;<br />
			$seed .= $upper;<br />
		}<br />
		if ($useLower) {<br />
			$seedLength  = 26;<br />
			$seed .= $lower;<br />
		}<br />
		if ($useNumber) {<br />
			$seedLength  = 10;<br />
			$seed .= $number;<br />
		}<br />
		if ($useCustom != &#8221;) {<br />
			$seedLength  = strlen($useCustom);<br />
			$seed .= $use_custom;<br />
		}<br />
		for ($x = 1; $x</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Darrell</title>
		<link>http://www.emanueleferonato.com/2006/08/02/php-password-generator/comment-page-1/#comment-14956</link>
		<dc:creator>Darrell</dc:creator>
		<pubDate>Sun, 27 May 2007 00:13:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2006/08/02/php-password-generator/#comment-14956</guid>
		<description>Thank you for this! I needed something exactly like this. Wonderful.

Darrell Goodman
Toronto, Canada</description>
		<content:encoded><![CDATA[<p>Thank you for this! I needed something exactly like this. Wonderful.</p>
<p>Darrell Goodman<br />
Toronto, Canada</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sven</title>
		<link>http://www.emanueleferonato.com/2006/08/02/php-password-generator/comment-page-1/#comment-2282</link>
		<dc:creator>Sven</dc:creator>
		<pubDate>Fri, 12 Jan 2007 09:11:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2006/08/02/php-password-generator/#comment-2282</guid>
		<description>Nice, think :) 

i implemented that, works great :) nice think...</description>
		<content:encoded><![CDATA[<p>Nice, think :) </p>
<p>i implemented that, works great :) nice think&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bobby</title>
		<link>http://www.emanueleferonato.com/2006/08/02/php-password-generator/comment-page-1/#comment-1491</link>
		<dc:creator>Bobby</dc:creator>
		<pubDate>Sun, 24 Dec 2006 23:14:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2006/08/02/php-password-generator/#comment-1491</guid>
		<description>Works great! Did some editing to get it to do what we needed and it works as advertised. See it in action at http://www.mywebteks.com/hosting_store/pass_gen/pass_generator.php</description>
		<content:encoded><![CDATA[<p>Works great! Did some editing to get it to do what we needed and it works as advertised. See it in action at <a href="http://www.mywebteks.com/hosting_store/pass_gen/pass_generator.php" rel="nofollow">http://www.mywebteks.com/hosting_store/pass_gen/pass_generator.php</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BFD</title>
		<link>http://www.emanueleferonato.com/2006/08/02/php-password-generator/comment-page-1/#comment-40</link>
		<dc:creator>BFD</dc:creator>
		<pubDate>Sat, 12 Aug 2006 00:20:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2006/08/02/php-password-generator/#comment-40</guid>
		<description>Nevermind, I saw the edits to your code.</description>
		<content:encoded><![CDATA[<p>Nevermind, I saw the edits to your code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BFD</title>
		<link>http://www.emanueleferonato.com/2006/08/02/php-password-generator/comment-page-1/#comment-39</link>
		<dc:creator>BFD</dc:creator>
		<pubDate>Sat, 12 Aug 2006 00:19:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2006/08/02/php-password-generator/#comment-39</guid>
		<description>The function did not show, if you could please email me it.</description>
		<content:encoded><![CDATA[<p>The function did not show, if you could please email me it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emanuele Feronato</title>
		<link>http://www.emanueleferonato.com/2006/08/02/php-password-generator/comment-page-1/#comment-38</link>
		<dc:creator>Emanuele Feronato</dc:creator>
		<pubDate>Fri, 11 Aug 2006 18:31:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/2006/08/02/php-password-generator/#comment-38</guid>
		<description>Well... you have to include your function between php tags.
I mean you open with &lt;?php then you paste the function, then the echo and finally you close php with ?&gt;

Good luck!</description>
		<content:encoded><![CDATA[<p>Well&#8230; you have to include your function between php tags.<br />
I mean you open with < ?php then you paste the function, then the echo and finally you close php with ?></p>
<p>Good luck!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
