Original post

Hello

I have this Java code:

Cipher rsaCipher = Cipher.getInstance("RSA/ECB/nopadding"); rsaCipher.init(Cipher.DECRYPT_MODE, client.getRSAPrivateKey());

This part of code decrypts my message. How can I decrypt this message using ?

I had tried DecryptOAEP(), privateKet.Decrypt(), DecryptPKCS1v15() and I always got an error: crypto/rsa: decryption error