note
jettero
Normally you wouldn't use [mod://Crypt::Blowfish] directly. Choose [mod://Crypt::CBC] and make sure to use [doc://binmode] where necessary. Most likely you forgot a bunch of sticky little details like padding and initialization vectors and things. Let CBC do the work:
<code>
my $cipher = Crypt::CBC->new(-key => 'my secret key', -cipher => 'Blowfish');
my $crypted = $cipher->encrypt("blarg!!");
my $text = $cipher->decrypt($crypted); # blarg
</code>
844000
844000