Cipher.getInstance("AES/ECB/PKCS5Padding") not available

Hello,

Can anyone tell me ASAP of why would this error occur? Also what J2SDK have begun to add support for this?

Siddhartha
LVL 2
mehtasAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

girionisCommented:
The implementation you are trying to access is simply not available.
0
mehtasAuthor Commented:
What do you mean by that? Can you please explain?

I have this thing working on my machine wherein I get the instance of Cipher. And I have j2sdk1.4.2_03 on my machine.

This application throws the exception below on other machine which has got a different version of java:

Algorithm (AES/ECB/PKCS5Padding) is not available - Algorithm AES not available

Does that provide any hint?
0
girionisCommented:
> I have this thing working on my machine wherein I get the instance of
> Cipher. And I have j2sdk1.4.2_03 on my machine.

Yes, AES is only available from 1.4 and onwards: http://java.sun.com/products/jce/index-14.html
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

girionisCommented:
> Yes, AES is only available from 1.4 and onwards:
http://java.sun.com/products/jce/index-14.html

Which means jce 1.2
0
girionisCommented:
Sorry, wrong suggestion, AES is only available from jdk *1.4.2* and onwards.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
gnoonCommented:
Checks on file C:\j2sdk1.4.2\jre\lib\security\java.security has something like this

security.provider.4=com.sun.crypto.provider.SunJCE

The number isn't 4 is fine, and checks for file C:\j2sdk1.4.2\jre\lib\ext\sunjce_provider.jar exists on path.

P.S. JAVA_HOME is C:\j2sdk1.4.2 by assume.
0
gnoonCommented:
I can use both AES/ECB/PKCS5Padding and Rijndael/ECB/PKCS5Padding with j2sdk1.4.2-b28.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.