Crypt :: CBC (perl) uses its own method to randomize salt and initialization vector. Plus, in the case of Blowfish uses a key length of 56, as described above.
Using perl code from your example:
Perl
use Crypt::CBC; my $cipher = Crypt::CBC->new( -key => 'length32length32length32length32', -cipher => 'Blowfish' ); my $ciphertext = $cipher->encrypt_hex('test');
To decode this with ruby (OpenSSL), a little tweaking is required to extract the key and initialization vector:
Ruby
require 'openssl'
bwicklund
source share