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!

PBEWithMD5AndTripleDES question - urgent

843810Oct 28 2003 — edited Nov 3 2005
I have my Java environment set up with JDK1.3 and JCE1.2.2. I am trying to encrypt using the symmetric algorithm PBEWithMD5AndTripleDES. However, I get the following error:

java.security.NoSuchAlgorithmException: Algorithm PBEWithMD5AndTripleDES not available
at javax.crypto.SunJCE_b.a(DashoA6275)
at javax.crypto.SecretKeyFactory.getInstance(DashoA6275)
at nvxCrypt.encryptString(nvxCrypt.java:226)
at useCrypt.main(useCrypt.java:23)

I have added the SunJCE and BouncyCastle providers and I can successfully en/decrypt the above using JDK1.4. However, I need to implement this component with JDK1.3. If this doesn't work then I will scale the encryption down to PBEWithMD5AndDES, which has been working fine.

Could someone please help me or is the implementation of TripleDES not available in JCE1.2.2? The documentation does say the support is there but doesn't explicitly state the implementation of the cipher.

Thanks for your help in advance!

Mikey
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 1 2005
Added on Oct 28 2003
18 comments
3,358 views