Re: Linux / PHP and passwords -( md5 function)
| From: | Christian Reiniger | Date: | Mon, 12 Mar 2001 18:27:57 +0000 |
| Subject: | Re: Linux / PHP and passwords -( md5 function) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-43513@lists.php.net to get a copy of this message | ||
On Monday 12 March 2001 18:31, you wrote:
> I am trying to generate a MD5 string equal to a known passwords MD5
> string , with no luck in order to make a new password file
>
> i have tried use php's : $value = md5($string);
> and $value = crypt($string,$salt);
>
> the passwds in my systems /etc/shadow all start with $1 which i believe
> is standard for MD5 passwords of 32 length
The "$1$" is the start of a 12-char salt (as described in the manual
entry for crypt ()).
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
Install once, run forever. Linux.