LMPX.COM |
Home | Linux | Mysql | PHP | XML | ||
|
|
|||
From: Georg Grabler Date: Fri Oct 6 03:37:11 2006 Subject: Decrypt Strings encrypted in .NET
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
| Navigate in group perl.crypto at sever nntp.perl.org | |
| Previous | Next |
| © No Copyright You are free to use Anything |
Site Maintained by PHP Developer
Powered By PHP Consultants |