Re: PEAR Auth, File_Passwd, and crypt() limitation?
| From: | Michael Wallner | Date: | Thu, 14 Apr 2005 06:00:38 +0000 |
| Subject: | Re: PEAR Auth, File_Passwd, and crypt() limitation? | ||
| References: | 1 2 3 4 5 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-37230@lists.php.net to get a copy of this message | ||
Hi Tomas V.V.Cox, you wrote:
> Use the apr_md5 instead from File_Passwd (typing "foo" as pass):
> Interesting is that using PHP4, passwords does not match. A bug in
> File_Passwd::crypt_apr_md5()?
They don't?
C:\>htpasswd -nbm foo foo
foo:$apr1$i12.....$8dC0.kWx8scjAU9mvrCUN1
C:\>php5 -v
PHP 5.0.2 (cli) (built: Sep 24 2004 01:25:41)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v2.0.2, Copyright (c) 1998-2004 Zend Technologies
C:\>php5 -r "require 'File/Passwd.php'; echo
File_Passwd::crypt_apr_md5('foo', '$apr1$i12.....$8dC0.
kWx8scjAU9mvrCUN1');"
$apr1$i12.....$8dC0.kWx8scjAU9mvrCUN1
C:\>php -v
PHP 4.3.8 (cli) (built: Jul 13 2004 17:36:57)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
C:\>php -r "require 'File/Passwd.php'; echo
File_Passwd::crypt_apr_md5('foo', '$apr1$i12.....$8dC0.k
Wx8scjAU9mvrCUN1');"
$apr1$i12.....$8dC0.kWx8scjAU9mvrCUN1
Regards,
--
Michael - < mike(@)php.net >
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc