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
[EMAIL PROTECTED]
"There are 10 kinds of people in this world, 
those who understand binary and those who don't" (Unknown)

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to