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 the doc is correct.

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.: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to