Re: [PHP-DEV] Blowfish code From: Rasmus Lerdorf (rasmus <email protected>)
Date: 03/31/99

> 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 <email protected>
For help: php-dev-help <email protected>