PHPでのデータの暗号化に、pearのCrypt_Blowfishを使ってみた。 pear-Crypt_Blowfishのインストール portsからインストールすることができる。 cd /usr/ports/security/pear-Crypt_Blowfish sudo make install clean サンプルソース Crypt_Blowfish 1.1.0RC1 betaの場合。 <?php include('Crypt/Blowfish.php'); function encrypt ($secret, $clear_text){ $bf = Crypt_Blowfish::factory('ecb',$secret); if(PEAR::isError($bf)){ echo $bf->getMessage(); exit; } $encrypted = $bf->enc