PDA

View Full Version : Implementing RSA in Java (manually)



DBQ
April 11th, 2011, 10:15 PM
Hi everybody.

I am implementing an RSA algorithm in Java.

I am using the BigInteger class.

I use modPow function of the class for encryption and decryption. I know that all of my parameters are correct. Modpow, however, returns the wrong result for large number. Why is this? How do I fix it?

NovaAesa
April 11th, 2011, 11:29 PM
Please give an example of the "wrong" result. How do you know the result is wrong? Did you calculate it manually?