Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Algorithm AES not available

 
Peter Primrose
Ranch Hand
Posts: 755
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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"

anyonw?
 
Lin Feng
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should config the java.security on the different computer to add a Provider with AES algorithm

Thanks

Lin
 
Peter Primrose
Ranch Hand
Posts: 755
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lin, thank you so much for your reply. How do I do that?
what should I add there?
 
Lin Feng
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can compare the java.security files on the two computers.
Look at the security provider section
The following is an excerpt from the java.security file

security.provider.1=sun.security.provider.Sun
security.provider.2=com.sun.net.ssl.internal.ssl.Provider
security.provider.3=com.sun.rsajca.Provider
security.provider.4=com.sun.crypto.provider.SunJCE
security.provider.5=sun.security.jgss.SunProvider

You should have something like
security.provider.6= ....
in the java.security 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
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to know what is the provider classes JAR required for AES encrytion?
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The following article might help:

Using AES with Java Technology
 
basha khan
Ranch Hand
Posts: 516
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try Bouncycastle JCE
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic