don't tell anyone, but I get a thrill out of md5 generated passwords :)
return substr(md5(mt_rand(0, 999)), mt_rand(0, 19), mt_rand(8,
12));
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
Simplerules wrote:
> I am writing a Users Controller and need to generate a password if
> somebody has forgotten theirs, what is the cleanest way to generate a
> short password with numbers and letters?
I did this today, using:
$chars =
array("a","b","c","d","e","f","g","h","i","j","k","l","m",
I am writing a Users Controller and need to generate a password if
somebody has forgotten theirs, what is the cleanest way to generate a
short password with numbers and letters?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goog