You are here: Re[4]: [PHP] Apache htpasswd « PHP « IT news, forums, messages
Re[4]: [PHP] Apache htpasswd

Posted by "Javier" on 07/08/05 01:35

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация