Re: PHP 4.1 crypt()
| From: | Mike Eheler | Date: | Tue, 08 Jan 2002 19:54:45 +0000 |
| Subject: | Re: PHP 4.1 crypt() | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-79815@lists.php.net to get a copy of this message | ||
Too late for that, too.. in addition to providing web hosting for hundreds of sites, we are also a web development company and have 2 major websites out there using extended php 4.1 features.
We need STD_DES, and it appears that PHP 4.1 has switched to using MD5 by default.
Thanks for your help! I'll see what I can do.
Mike
Patrik Wallstrom wrote:
On Tue, 8 Jan 2002, Mike Eheler wrote:It's too late for that. And I don't believe that the system's crypt() function just magically changed at exactly the same time we upgraded to PHP 4.1According to the crypt() man page, crypt() can use four methods of encryption: CRYPT_STD_DES - Standard DES-based encryption with a two character salt CRYPT_EXT_DES - Extended DES-based encryption with a nine character salt CRYPT_MD5 - MD5 encryption with a twelve character salt starting with $1$ CRYPT_BLOWFISH - Blowfish encryption with a sixteen character salt starting with $2$ You should check which method your crypt() method used before changing PHP version, and use the mcrypt specific method. You did backup the old php installation, right? -- patrik_wallstrom->foodfight->pawal@blipp.com->+46-709580442