jstuardo a écrit :
> Hello....

Hello,

> I have a ASP.NET page that sends an excrypted text to an ASP page
> using DES algorithm. On the other hand, the ASP page needs to retrieve
> that encrypted text and decrypt it.
> 
> In order to test encryption and decryption I am only encrypting a
> simple text using .NET and using Crypto++ library, which I wrapped in
> a COM+ component that is feasible to call from ASP.
> 
> The text I'm encrypting is only "h". The problem is that both
> environments generate different outputs.

I think that the input is different. You do that :
Encoding.UTF8.GetBytes("h") in C#
It encode h in UTF-8 form, but you don't know how the string is padded.

Try to use the same input for both algorithm.
(or try to print what you're encrypting).

In C#, with the first alogorithm :

byte inputByteArray[8];
memset(inputByteArray, 0, 8);
inputByteArray[0] = 'h'; // STRING TO ENCRYPT !!!

....

cs.Write(inputByteArray, 0, 8);

...

> Any help will be greatly appreciated
Hope that will help you.

Best

-- 
Florian.

        

        
                
___________________________________________________________________________ 
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son 
interface révolutionnaire.
http://fr.mail.yahoo.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
-~----------~----~----~----~------~----~------~--~---

Reply via email to