RE: [PHP] DES to MD5 password compare script
| From: | Mark Roedel | Date: | Fri, 08 Sep 2000 21:53:58 +0000 |
| Subject: | RE: [PHP] DES to MD5 password compare script | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-15955@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: kris@grinz.com [mailto:kris@grinz.com]
> Sent: Friday, September 08, 2000 1:24 PM
> To: Mark Roedel
> Cc: php-general@lists.php.net
> Subject: RE: [PHP] DES to MD5 password compare script
>
>
> Ah.. I figured the problem out. Apparently, for whatever reason,
> $CRYPT_SALT_LENGTH is blank so I set it to 12 before using it
> with crypt and that fixed the problem.
Try using CRYPT_SALT_LENGTH, instead of $CRYPT_SALT_LENGTH. (It's a
constant, not a variable. I think I prob'ly made a typo in my original
message to you on the subject. That what you get for asking questions in
the morning...)
---
Mark Roedel | "Blessed is he who has learned to laugh
Systems Programmer | at himself, for he shall never cease
LeTourneau University | to be entertained."
Longview, Texas, USA | -- John Powell