Re: md5 crypt question

From: Date: Wed, 18 Jul 2001 01:20:07 +0000
Subject: Re: md5 crypt question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-58373@lists.php.net to get a copy of this message
On Tue, 17 Jul 2001, tc lewis wrote: > > On Tue, 17 Jul 2001, Jeremy Hansen wrote: > > On Tue, 17 Jul 2001, tc lewis wrote: > > > try: > > > <php echo(CRYPT_SALT_LENGTH); ?> > > > <php echo(CRYPT_MD5); ?> > > > > > > or: > > > <php echo constant("CRYPT_SALT_LENGTH"); ?> > > > <php echo constant("CRYPT_MD5"); ?> > > > > > > you should get output of 12 and 1 (not 2 and 0) if md5 is supported in > > > crypt(), i think. > > > > Yeah, I'm getting 2 and 0. Lame. What's the answer to this. > > i'm not sure. i don't see any related configure flags or php.ini > settings. it seems to work with standard redhat 7.1 linux (i'm assuming > you're using some redhat-ish system, as i know you): This is confusing. I'm actually using rh6.2 on this particular install. Older glibc have something to do with crypt() implimentations? thanks -jeremy > [tcl@jobo tcl]$ cat nog.php > #!/usr/bin/php > <?php echo(constant('CRYPT_SALT_LENGTH')); ?> > <?php echo("\n"); ?> > <?php echo(constant('CRYPT_MD5')); ?> > <?php echo("\n"); ?> > <?php echo(crypt('teststr', 'testsalt')); ?> > <?php echo("\n"); ?> > <?php echo(crypt('teststr', '$1$testsalt$')); ?> > <?php echo("\n"); ?> > [tcl@jobo tcl]$ ./nog.php > X-Powered-By: PHP/4.0.4pl1 > Content-type: text/html > > 2 > 1 > te4c1aD5wKOnM > $1$testsalt$W00xFyq3oO6fDqto9qMY00 > [tcl@jobo tcl]$ > > any suggestions from the rest of the list? > > you could try using the mhash library stuff instead. blah. > > -tcl. > > > -- salad.

« previous php.general (#58373) next »