This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes Security and the fly likes Algorithm PBKDF2WithHmacSHA1 not available Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark " Algorithm PBKDF2WithHmacSHA1 not available " Watch " Algorithm PBKDF2WithHmacSHA1 not available " New topic
Author Algorithm PBKDF2WithHmacSHA1 not available

Phanikumar Balla

Joined: Jul 27, 2013
Posts: 2
I have code in java 1.4 version there we got a new requirement like have decrypt a password from another webservice response, for that have to use AES 256 decryption, getting following exception:

SecretKeyFactory factory = SecretKeyFactory.getInstance("PBKDF2WithHmacSHA1"); Algorithm PBKDF2WithHmacSHA1 not available
at javax.crypto.SunJCE_b.a(DashoA12275)
at javax.crypto.SecretKeyFactory.getInstance(DashoA12275)
at ftpserver.AESEncrypter.main(

I tried by copying jce_policy_1-4 version jars into java home security folder still am getting the above exception.
Is there any solution in Java 1.4 without changing to 1.5 because running jboss server version 3.2.3 will not support java 1.5.

Please help me
Phanikumar Balla

Joined: Jul 27, 2013
Posts: 2
Decryption is working after adding and dependency and
import org.bouncycastle.jce.provider.BouncyCastleProvider;
Security.addProvider(new BouncyCastleProvider());
I agree. Here's the link:
subject: Algorithm PBKDF2WithHmacSHA1 not available
It's not a secret anymore!