Re: UPDATE: Proposal: File_Passwd

From: Date: Thu, 18 Sep 2003 20:27:34 +0000
Subject: Re: UPDATE: Proposal: File_Passwd
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-21728@lists.php.net to get a copy of this message
On 18 Sep 2003 at 21:50, Michael Wallner wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi Mika Tuupola, you wrote: > > > Since it seems to be more advanced than the current one and > > doing BC break by starting to use factory pattern is a good > > idea, we could do a 2.x release out of it. > > That are good news :) > > > I still don't like File_Passwd_Authbasic being dependent on > > external htpasswd binary. That should be used only if internal > > php functions are not adequate. Guess that could be fixed > > later though. > > As I tried to explain, it depends on Apache/htpasswd not PHP. > > PHP's md5-crypt passwds look like $1$..... > but htpasswds md5 passwds look like $apr1$.... > and I couldn't do anything to 'emulate' that. > > This 'apr' is for 'Apache Portable Runtime' I think... http://www.cr0.net:8040/code/crypto/md5.php Here you find an optimized implementation in C for reference - just in case you would like to rewrite the md5-part. This will be slower than the PHP-internal but faster / better to handle than the external htpasswd. Stefan

« previous php.pear.dev (#21728) next »