Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

URGENT-PBE AND BOUNCYCASTLE PROVIDER PROBLEM

843810Mar 26 2004 — edited Mar 27 2004
Hi, everybody i m using the j2sdk1.4.2_03
I am trying to run my PBE program but i get the following error:

Exception in thread "main" java.security.NoSuchAlgorithmException: Algorithm PBEWithSHAANDTwofish-CBC not avai
lable
at javax.crypto.SunJCE_b.a(DashoA6275)
at javax.crypto.SecretKeyFactory.getInstance(DashoA6275)
at PBE.encrypt(PBE.java:42)
at PBE.main(PBE.java:29)

Here's the deal.
I have done the following:
I have downloaded the bouncycastle for jdk 1.4 from bouncycastle.org.I read somewhere in there that i also had to download and change the jurisdiction.jar policy files shpped in the jce.Ive done that too. I have also pasted the .jar file bouncycastle after i jarred it myself in the jre both in j2sdk as well as C:\program files\java\security.
However, after having done all that i still keep getting the same error
What am i doing wrong?Is there a complete proper site that tells u exactly what to do as to how to add this provider??
Do i perhaps need to include the bouncycastle provider in my code as well???
Please give me some hints on that one.Its really urgent

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 24 2004
Added on Mar 26 2004
5 comments
533 views