Re: Basic Authentication

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

 



tedd wrote:
At 2:19 PM -0600 1/14/09, Shawn McKenzie wrote:


As others have said, use crypt().
http://php.net/manual/function.crypt.php has Example #2 Using crypt()
with htpasswd.


Thanks, but that doesn't really solve my problem.

You see, I know the password and I know the encoded result -- what I don't know is what algorithm was used to generate the encoding.

Here are all the algorithms I know of (this includes the above link you provided).

http://webbytedd.com/bbbb/md5/index.php

However, none of them match what have.

crypt with a salt?

htpasswd --help:

-d  Force CRYPT encryption of the password (default).

md5 = fixed 32 chars
sha1 = fixed 40 chars

no idea about the others but crypt does not have a fixed length.

--
Postgresql & php tutorials
http://www.designmagick.com/


--
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