use Crypt::CBC; $cipher = new Crypt::CBC ($key, 'Twofish'); undef $/; $plaintext = ; print CIPHERTEXT $cipher->encrypt($plaintext);