Web Hosting Forum | Lunarpages

Author Topic: RSA Encryption and bouncycastle  (Read 43299 times)

Offline iowatiger08

  • Newbie
  • *
  • Posts: 1
RSA Encryption and bouncycastle
« on: June 21, 2011, 07:38:16 AM »
I have been able to run decryption and encryption locally using the bouncycastle jars. I have generated keys that I want to put the public key a client (Java and Android) and the private key in a web service. I have been able to encrypt and encoded a message and send the encrypted message to the webservice (on my hosted service by LP), but the webservice decryption fails with a bogus FileNotFoundException on the line

BouncyCastleProvider bc = new BouncyCastleProvider();

or

Security.addProvider(new BouncyCastleProvider());

The bcprov-ext-jdk14-146.jar and the bcprov-jdk14-146.jar is included in the web-inf lib directory.

Is there something I can do programmatic to enable this or does Lunarpages have to do something?

**I wouldnt even get a stacktrace until I tried to use the Sun JCE provider() which says access denied. Is there anything that can be done to use the bouncycastle provider?  This is a show stopper!!

 

Share |