Re: Blowfish code

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: Blowfish code
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-4864@lists.php.net to get a copy of this message
> The configure process checks for Blowfish code, but I find no Blowfish > modules in crypt.c. Is Blowfish implemented? MD5 seems to be... > Also, I'd like to implement the Twofish algorithm and/or the winner of the > AES competition. Blowfish is supported in that the crypt() function is a simple passthrough to the system-level crypt() function. The only time PHP cares about the underlying encryption method is when you do not provide it with a salt. In that case it will generate an MD5 salt if your system-level crypt() uses MD5 as the default encryption and a DES salt otherwise. If your crypt() function supports Blowfish you simply feed it a Blowfish salt ($2$...) and PHP will happily pass it through. -Rasmus -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#4864) next »