Skip to main content
Participant
October 11, 2006
Question

MX7 Encryption with Bouncy Castle Crypto help

  • October 11, 2006
  • 1 reply
  • 803 views
Followed instructions posted on this site and in Forta's "Advanced" application dev book on page 157 but cannot get it to work. Is anyone using the Bouncy Castle API?

The basic problem we're trying to solve is that we have several vendors that we want to send encrypted data to. In particular, one of them is using PGP, which I think is based on IDEA algorithm which looks like the Bouncy api supports BUT when trying to test a simple string encryption I always get "provider does not support" error message.

I've attached the test code I'm using, basically pulled from Forta's "Advanced" application development page 155 with slight mod to include the IDEA algorithm.

Thanks in advance for your time and consideration.



This topic has been closed for replies.

1 reply

Participating Frequently
October 12, 2006
It looks like you do not have the BouncyCastle provider installed correctly.

See the "Installing additional security providers" and "Installing the Sun Unlimited Strength Jurisdiction Policy Files" sections of the encryption TechNote at http://www.adobe.com/go/e546373d .

The most current BouncyCastle version for Java 1.4 is v1.34 in the file bcprov-jdk14-134.jar.

-tom-
geodin77Author
Participant
October 12, 2006
Thanks Tom, but we have followed those instructions carefully, added the bouncy jar to the ext directory, updated the jce policy jars to unlimited encryption from Sun, restarted / rebooted, made looked for other possible runtime environments being used... same problem. Has anyone successfully used the latest bouncy jar, bcprov-jdk14-134.jar? Thanks.
Participating Frequently
October 13, 2006
Did you modify the java.security file? You might also try the Security.getProviders() java function to list the providers java is seeing.