Help for this page

Select Code to Download


  1. or download this
    use Crypt::CBC;
    my $key = "a" x 32;
    my $cipher = Crypt::CBC->new( -cipher => 'Rijndael', -key => $key );
    my $ciphertext = $cipher->encrypt($plaintext);
    
  2. or download this
    use Crypt::CBC;
    my $key = "a" x 32;
    my $cipher = Crypt::CBC->new( -cipher => 'Rijndael', -key => $key );
    my $plaintext  = $cipher->decrypt($ciphertext);