I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2007-03-30 16:19:20-07 by rolf
C# Decrypt
Hi We receive via HTTP a file that is encrypted using rijndael_encrypt() in perl. We wantto decrypt it using classes in c# or a direct call into a dll using c#. Is this possible? thanks Rolf
Direct Responses: 4726 | Write a response
Posted on 2007-03-31 04:48:13-07 by bdfoy in response to 4722
Re: C# Decrypt
It shouldn't be a problem to encrypt something with Crypt::Rijndael in Perl and then decrypt it in a program using a different language. The algorithm going in either direction shouldn't matter. If you run into problems with compatibility please let me know.
Direct Responses: 4743 | Write a response
Posted on 2007-04-02 13:58:48-07 by rolf in response to 4726
Re: C# Decrypt
Hi This is the perl script that can decrypt the information in a file:
Quote-------------------------------------------------------------------------
use Crypt::Rijndael_PP ':all';

#AES
$key = '00010203050607080A0B0C0D0F10111214151617191A1B1C1E1F202123242526'; # 256bit hex number

$p_txt = rijndael_decrypt($key, MODE_CBC, $c_txt, 256, 128);

unquote---------------------------------------------------------
We want to decrypt the information via classes in C#. I have the following options: rm is the variablename used for RijndaelManaged class. This is a class in the .NET framework.
rm.Padding = PaddingMode.Zeros;
rm.Mode = CipherMode.CBC;
rm.BlockSize = 128;
rm.KeySize = 256;
rm.Key = HexEncoding.HexStringToByteArray("00010203050607080A0B0C0D0F10111214151617191A1B1C1E1F202123242526");
I have no value for the rm.IV variable. Which should be the initialization vector. The sending party says that no such value has been set while encrypting.

What else could I look at to enable the decryption in c#...?

Where can I start looking to find any info regarding this?

Thanks for your info

regards Rolf
Compete Automatisering BV
Direct Responses: 13414 | Write a response
Posted on 2011-07-25 07:49:54.79798-07 by tiggertag2000 in response to 4743
Re: C# Decrypt
Rolf, I am in the similar situation. I have to decrypt a string in C# which is encrypted using perl Crypt::Rijndael_PP module. I know it's a long shot and the post is more than 4 years old, if you have figured it out can you please reply here with your solution. Thank you!
Direct Responses: Write a response