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 AES 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 AES not available" Watch "Algorithm AES not available" New topic

Algorithm AES not available

Peter Primrose
Ranch Hand

Joined: Sep 10, 2004
Posts: 755
err msg: Algorithm AES not available
Does anyone know what can possibly cause this problem?

on my computer (XP) everything works fine, but when trying the same code on a different computer (MS2003) it doesn't work.

I get "Algorithm AES not available"

Lin Feng
Ranch Hand

Joined: Dec 11, 2002
Posts: 142
You should config the on the different computer to add a Provider with AES algorithm


Peter Primrose
Ranch Hand

Joined: Sep 10, 2004
Posts: 755
Lin, thank you so much for your reply. How do I do that?
what should I add there?
Lin Feng
Ranch Hand

Joined: Dec 11, 2002
Posts: 142
You can compare the files on the two computers.
Look at the security provider section
The following is an excerpt from the file

You should have something like
security.provider.6= ....
in the file on your computer. That defines the provider for AES. Add it to the remote computer.

Usually the jar file which contains the provider should be in your ext class path. Copy it to your remote computer.

The sun jdk does not provide AES. I am not sure which 3rd party packages you have on your local computer.
ankoor shah

Joined: Sep 02, 2005
Posts: 3
I need to know what is the provider classes JAR required for AES encrytion?
Valentin Crettaz
Gold Digger

Joined: Aug 26, 2001
Posts: 7610
The following article might help:

Using AES with Java Technology

[Blog] [Blogroll] [My Reviews] My Linked In
basha khan
Ranch Hand

Joined: Jan 26, 2002
Posts: 516
Try Bouncycastle JCE
I agree. Here's the link:
subject: Algorithm AES not available
It's not a secret anymore!