on 08-17-2011 7:46 AM
Hi All,
We are using JDK 1.4.09 and written AES Encryption Program.
This is working fine for higher versions of JDK but not for above.
When running, this gives the following error. Is there any other way of making this run on server which runs on above jdk.
java.security.NoSuchAlgorithmException: Algorithm PBKDF2WithHmacSHA1 not available
at javax.crypto.SunJCE_b.a(DashoA12275)null
at javax.crypto.SecretKeyFactory.getInstance(DashoA12275)
at testPack.Test.generateSecretKeyFromPassword(Test.java:94)
at testPack.Test.encryptMessage(Test.java:42)
at testPack.Test.main(Test.java:30)
Regards,
Aditya
I think that from a certain Java version the JCE (Java Cryptography Extension) was included in the distribution and prior to that you had to download the encryption libraries and install them (putting them in your JRE lib\ext folder or something like that).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Re-reading your post, I noticed you specified "PBKDF2WithHmacSHA1".
Can you provide a sample of your source code?
Cipher scheme should have the format of: algorithm/mode/padding. For example: AES/CBC/NoPadding
(in this case the padding scheme is no padding - I just don't remember of the top of my head a padding scheme)
Hi Aditya,
The feature might not be available in JDK 1.4
http://www.coderanch.com/t/432039/Security/create-SecretKey-AES-Encryption-based
Regards,
Srikishan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.