I am implementing a demo for RSA Encryption and Decryption in Android. I can Perform Encryption very well, but In Decryption I get an Exception: >>java.security.
>>java.security.
I think the problem is that you should use the same key pair to encrypt and decrypt the cipher. Referring to the JavaDoc:
genKeyPair() This will generate a new key pair every time it is called.