Re: {PHP-DB} password generator
| From: | David T-G | Date: | Wed, 10 Dec 2003 15:56:37 +0000 |
| Subject: | Re: {PHP-DB} password generator | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-31965@lists.php.net to get a copy of this message | ||
Nikos --
..and then Nikos Gatsis said...
%
% Hello list
Hi!
%
% Is there any PHP script that generate password with digits from [a-zA-Z0-9] to suggest me?
This just came up on the php list recently... The best one that I saw
was a one-liner which peels the first N chars from an md5 string, like
$password = strtolower(substr(md5(uniqid(time())), 0, 7));
or so (here N = 8 and so we're using chars 0..7).
% Thanx
HTH & HAND
:-D
--
David T-G * There is too much animal courage in
(play) davidtg@justpickone.org * society and not sufficient moral courage.
(work) davidtgwork@justpickone.org -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/ Shpx gur
Pbzzhavpngvbaf Qrprapl Npg!