Encryption and Decryption in C#

G

Guest

H

I have a requirement where i need to encrypt the data using 3DES in C# and pass on the data to the Application server where i need to decrypt the data. The application server is a Unix Box running the java components
There is a type mismatch between the byte datatype of C# and java, as C# is only unsigned and java uses both signed and unsigned

Im not able to decrypt the message at the java end

Any help on this appreciated.
 
J

Jon Skeet [C# MVP]

Ravi said:
I have a requirement where i need to encrypt the data using 3DES in
C# and pass on the data to the Application server where i need to
decrypt the data. The application server is a Unix Box running the
java components.
There is a type mismatch between the byte datatype of C# and java, as
C# is only unsigned and java uses both signed and unsigned.

No, Java only uses signed (unfortunately). There's no "unsigned byte"
type in Java.

However, you should still be able to get them to interoperate, as the
3DES data should be pretty standard.

Please post both the C# encryption and Java decryption code. There are
various potential sources for error.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top