Re: Anyone know of a PHP Dictionary Password Generator

From: Date: Sun, 15 Aug 2004 07:37:08 +0000
Subject: Re: Anyone know of a PHP Dictionary Password Generator
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-193872@lists.php.net to get a copy of this message
John Holmes wrote:
Anyone know of a PHP english word password generator? Something that'll produce easy to read and remember codes like "buffalo_candy" or "shipment+plant", etc? I had a look on phpclasses.org, but didn't find anything like this. Or, as an alternative, I'll code it myself if anyone can point me to a "dictionary" of english words that I could use populate a text file or database to choose from.
John, On a recent project I had a similar problem, and then I found pwgen [ http://sf.net/projects/pwgen/ ] and it worked great. It creates passwords that are easy for humans to remember, but difficult for machines to guess. It can even create "machine" passwords. Here's sample output : burhan@sandbox burhan $ pwgen -n -c -C 8 5 shie9ohG hu8Aengu Thie2ahx Ajien9ai eM2youhu With its various options, you can modify the lenth and number of passwords generated. The source code is also available, but I didn't have the time to convert it to PHP. Hopfully this helps, Burhan

« previous php.general (#193872) next »