Re[4]: Apache htpasswd

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

 



On 07/07/2005 at 14:23 Richard Lynch wrote:

>
>Aha!
>
>Since your output has an extra '$' after the $apr and before the
>1$n0/..... I'm gonna go out on a limb and suggest you probably shouldn't
>add the '$' to the front of your salt.
>
>You're adding it, and crypt() is adding it, and you've got too much money
>in your salt. :-)
>
>Change step 3 to:
>$cryptsalt = substr($crypthash,4,11);
>
>Basically, do whatever it takes to get the front half of the crypted
>outputs to match up, and I suspect that the random parts at the end will
>magically sort themselves out. :-)


As far as I've read, crypt needs $1 as the satart of salt to know that it
should be crypted with md5.

Then the code it's ok in that way.

Nevertheless, I've tried what you said but it didn't work because crypt
made an encryption with something that is not md5 and the result is:

$apr1$LsJY6m0XL/I

Any idea ?

Thanks in advance

J

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux