Re: {PHP-DB} password generator

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx * society and not sufficient moral courage.
(work) davidtgwork@xxxxxxxxxxxxxxx  -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/      Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

Attachment: pgp00083.pgp
Description: PGP signature


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux