I am using "RSA/None/PKCS1Padding" as :
Cipher RSACipher = Cipher.getInstance("RSA/None/PKCS1Padding");
This gives me exception as :
java.security.NoSuchAlgorithmException: Cannot find any provider supporting RSA/None/PKCS1Padding
Thanks for help.
Try "RSA/ECB/PKCS1Padding"
instead if you are running in an Oracle or Open JDK. It does not make too much sense to use a block cipher mode of encryption with RSA, but not all algorithm names are logical within the Java SE providers.
The Bouncy Castle Libraries support "RSA/None/PKCS1Padding"
though. So maybe the code was written for Bouncy or Android.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With