Why have these two methods of using blowfish in ecb-mode different outputs?
<?php
echo bin2hex(mcrypt_encrypt("blowfish", "test", "test", "ecb"))."\n";
echo bin2hex(openssl_encrypt("test", "bf-ecb", "test", true))."\n";
?>
Why have these two methods of using blowfish in ecb-mode different outputs?
<?php
echo bin2hex(mcrypt_encrypt("blowfish", "test", "test", "ecb"))."\n";
echo bin2hex(openssl_encrypt("test", "bf-ecb", "test", true))."\n";
?>
Because of different password-to-encryption-key derivation methods.