hi all,

<?php
echo '<pre>' .
 'CRYPT_STD_DES  ' . CRYPT_STD_DES  . "\n" .
 'CRYPT_EXT_DES  ' . CRYPT_EXT_DES  . "\n" .
 'CRYPT_MD5      ' . CRYPT_MD5      . "\n" .
 'CRYPT_BLOWFISH ' . CRYPT_BLOWFISH . '</pre>';
echo crypt('clear_pass', '$1$salt1234$');
?>
// outputs
CRYPT_STD_DES  1
CRYPT_EXT_DES  0
CRYPT_MD5      1
CRYPT_BLOWFISH 0
$1WrhY7RKpNLM

seems that crypt function uses DES instead of MD5 :((

configure output:
...
checking for standard DES crypt... yes
checking for extended DES crypt... no
checking for MD5 crypt... yes
checking for Blowfish crypt... no
...


previous PHP version (4.2.2) on the same system worked fine. the same
version of PHP (4.2.3) works fine on other computer (Slackware 8.1)

any ideas?

thanks,
adu



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

Reply via email to