aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
Similar Threads
java JCE version compatibility
Keystore and Encryption
.NET vs JCE Question
How to create SecretKey for AES 128 Encryption based on user's password??