crypt problem

From: Date: Thu, 11 Sep 2003 15:11:03 +0000
Subject: crypt problem
Groups: php.general 
Request: Send a blank email to php-general+get-162306@lists.php.net to get a copy of this message
Hi, I have a weird problem with the crypt function. If I do: <?php echo(CRYPT_SALT_LENGTH); echo(CRYPT_MD5); echo crypt("xxxxxxxx", 'aa'); echo crypt("xxxxxxxx", '$1$kTzSYf0n$'); ?> It print: 12 1 aat2dQ.feSqBI $1qjC9EADQ1x6 It seem that the second password is not encrypted in MD5 but with DES. It should be in MD5 if I read the doc correctly. My PHP version is 4.3.1 and compiled on a RedHat 7.3 with the 2.4.18-27 kernel, apache 1.3.27 and the configure string: './configure' '--with-mysql' '--with-apache=../apache' '--with-gettext' '--with-xml' '--with-dom' '--with-imap=../imap' '--enable-mime-magic' '--with-iconv' '--enable-mbstring' '--with-zlib' '--enable-calendar' '--with-imap-ssl' '--with-mcrypt' Is it something I do wrong or something wrong in my system? Thank you. -- Serge Grondin Technicien en Informatique Commission Scolaire des Bois-Francs Tel. bur.: (819) 758-6453, poste 2920 e-Mail bur.: SGrondin@csbf.qc.ca

« previous php.general (#162306) next »