Re: Basic Authentication

From: Date: Wed, 14 Jan 2009 23:39:32 +0000
Subject: Re: Basic Authentication
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-286380@lists.php.net to get a copy of this message
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/

« previous php.general (#286380) next »