RE: [PHP-GENERAL] Random Password Generator

From: Date: Tue, 13 Jun 2000 19:10:41 +0000
Subject: RE: [PHP-GENERAL] Random Password Generator
Groups: php.general 
Request: Send a blank email to php-general+get-1742@lists.php.net to get a copy of this message
> Hi guys, is there anyone have a good solution for random password > generator ? > I think something about this > > $newpass = ""; > $string = "ABCDabcd1234"; > for ($i=0; $i<8; $i++ ) { > $newpass.= substr(rand(0,sizeof($string)),1,$string); > } Simple: $password = substr( md5(rand()), 0, $len);

« previous php.general (#1742) next »