Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

.NET to Java Encryption

843810Sep 23 2002 — edited Dec 17 2002
Hello,

I have seen this question asked in several places, but never seen a good answer (or any answer for that matter).
I am trying to do a very simple (sounding) task. I want to encrypt a piece of text in C# to a file, using one of the symmetric algorithms (trying RC2 right now), and also save the startup values for it (IV and key for RC2) into a file. I then want to read in those values in Java, create a Cipher that will use these values, and decrypt the encrypted file. I am using the Bouncy Castle provider jar, but am open to all (free) providers.
I have tried to do this several different ways, but never seem to be able to decrypt the data. Help me Obi-Wan, you're my only hope.

Thanks in advance.
kalu
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 14 2003
Added on Sep 23 2002
7 comments
324 views