Nikos --

...and then Nikos Gatsis said...
% Hello list


% 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


David T-G                      * There is too much animal courage in 
(play) [EMAIL PROTECTED] * society and not sufficient moral courage.
(work) [EMAIL PROTECTED]  -- Mary Baker Eddy, "Science and Health"      Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to