> I am attempting to encrypt and decrypt data using the bouncycastle JCE
> provider. I get this exception when I try to use it:
> java.security.NoSuchAlgorithmException: Cannot find any provider
> supporting RSA/ECB/PKCS1Padding
> at javax.crypto.Cipher.getInstance(DashoA12275)
> My Code looks like this:
> Cipher cipher2 = Cipher.getInstance("RSA/ECB/PKCS1Padding");
> Can anyone point out what I am doing wrong?
Try inserting a line:
Security.addProvider(new
org.bouncycastle.jce.provider.BouncyCastleProvider());
before your code.
Arne