Re: Regular Expression Help Please

From: Date: Mon, 01 Dec 2003 08:36:03 +0000
Subject: Re: Regular Expression Help Please
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-171444@lists.php.net to get a copy of this message
On 27 Nov 2003 at 11:48, Shaun wrote: > Hi, > > I need to generate a lowercase alphanumeric passwrord thats 8 characters > long, has anyone got a function that can do this? > > Thanks for your help > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > Umm, I don't know of a function already defined....but it shouldn't be that hard to generate .....in pseudocode : 1.Create an array containing the lower case letters as well as the digits 2. Pick a random integer between 0 and 35 (n) 3. Retrieve the character in array[n] 4. Add to password string. 5. Loop through another seven times HTH Rory McKinley Nebula Solutions +27 82 857 2391 rorym@nebula.co.za "There are 10 kinds of people in this world, those who understand binary and those who don't" (Unknown)

« previous php.general (#171444) next »