Talking about javax.crypto.Cipher
javax.crypto.Cipher
I was trying to encrypt data using Cipher.getInstance(\"RSA/None/NoPadding\", \"BC\") but I got the excep
Cipher.getInstance(\"RSA/None/NoPadding\", \"BC\")
You should not encrypt your data using RSA directly. Encrypt your data with a random symmetric key (i.e. AES/CBC/PKCS5Padding) and encrypt the symmetric key using RSA/None/PKCS1Padding.