Reputation: 925
I want to know the any Encryption-Decryption Algorithm (procedure) that can be implemented in C#.net as well as in Java. I have came accross a situation where, the data is encrypted by a C# code implemented using RSA using "RSACryptoServiceProvider" class and put it in Database. Now , I need to decrypt the same data in the Java reading it from Database.
While implementing RSA Decrypt method in Java its not working, (I made sure using the same keys). Following method has been used in C# for encryption.
http://www.codeproject.com/KB/security/RSACryptoPad.aspx
Hence, I need to know any standard algorithm for encryption, that can be used in C# and Java so that data can be encrypt - decrypt across the each other platform.
Upvotes: 0
Views: 1034
Reputation: 36327
You might want to start off by understanding the difference and the impact of the selected algorithm. You can implement these encryptions on your own, here are some examples.
Another encryption method is AES
Wikipedia is a very good reasource for information about encryption and decryption.
Upvotes: 2