in reply to Encrypting a Message in C# with Rijndael and Decrypting it on Perl
It seems you don't need the Crypt::CBC module since you can use Crypt::Rijndael directly configured in CBC mode, as the following example (taken from the manual) shows:
If you provide the output of your programs or initialise the variables of your Perl program with meaningful values, more specific help on the Perl part might be possible. I am not sure if most of the Monks here have a C# development environment at hand in order to create their own cipher-texts ... at least I haven't.use Crypt::Rijndael; # keysize() is 32, but 24 and 16 are also possible # blocksize() is 16 $cipher = Crypt::Rijndael->new( "a" x 32, Crypt::Rijndael::MODE_CBC() + ); # <-- key and CBC-MODE $cipher->set_iv($iv); # <-- here's your I-Vector $crypted = $cipher->encrypt($plaintext); # - OR - $plaintext = $cipher->decrypt($crypted);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Encrypting a Message in C# with Rijndael and Decrypting it on Perl
by zeussn (Initiate) on Jul 10, 2009 at 20:39 UTC | |
|
Re^2: Encrypting a Message in C# with Rijndael and Decrypting it on Perl
by ikegami (Patriarch) on Jul 10, 2009 at 20:42 UTC | |
by zwon (Abbot) on Jul 10, 2009 at 21:07 UTC |