use Crypt::CBC; my $cipher = Crypt::CBC->new( -key => $passphrase, -cipher => 'Blowfish', ); my $cipher_text = $cipher->encrypt($plain_text);