Decrypt Strings encrypted in .NET

[email protected] ("Georg Grabler") Fri, 6 Oct 2006 11:37:11 +0200
Newsgroups perl.crypto
Message-ID <[email protected]>
------=_Part_2758_18594227.1160127431517
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hello everyone.

I've been trying and trying to decrypt strings encrypted with .NET.

I used the CPAN Modules Crypt::CBC, Crypt::Rijndael, Crypt::Blowfish.

In .NET i used the already implemented code for Rijndael, a example rijndael
code from codeproject.com, the .net crypt library for blowfish from
sourceforge (which seems to use a to csharp ported code from the original
OpenBSD Blowfish algorithm).


I could never decrypt strings encrypted with .net, and i'm starting to get
crazy about this topic.
I've read a lot that people having troubles doing so. Personally i dont know
what exaclty .net and perl encryption is the difference.

Anyway, i also tryed to use Mcrypt, since some PHP developers wrote they got
the communication working using this.
Couldn't get the current mcrypt work with the mcrypt cpan module (probably
because of the quite out-of-date version the mcrypt module was written for,
which isn't available for download at all).

Does anyone of you have any advice of how to encrypt a string in .net so it
will be decryptable in perl?

The message i got by encoding (always, blowfish and rijndael) using CBC
(both sides, server and client) and a null (in .net it's called zero
padding) was:

Ciphertext does not begin with a valid header for 'salt' header mode at ....


What i also could see is that the encryption strings .net created always
were 24 byte, while the same string encrypted in perl used to have 32 bytes.

I'd appreciate any help you can provide within this.
Thank you,
Grabler Georg

------=_Part_2758_18594227.1160127431517--