Link to home
Start Free TrialLog in
Avatar of JavaStarter
JavaStarter

asked on

PBEWithMD5AndDes java.security.nosuchalgorithmexception

I'm getting a nosuchalgorithmexception when I try to run a program with PBEWithMD5andDES. This is the line thats causing the problem.

SecretKeyFactory skf = SecretKeyFactory.getInstance(algorithm);
     
algorithm is a string="PBEWithMD5AndDes"

My classpath is set ok because when I use other programs implementing DES they are ok.

Any suggestions?
 
ASKER CERTIFIED SOLUTION
Avatar of girionis
girionis
Flag of Greece image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of JavaStarter
JavaStarter

ASKER

Thanks girionis, I found the solution.

SecretKeyFactory skf = SecretKeyFactory.getInstance(algorithm);
   

The string algorithm should be "PBE" and not "PBEWithMD5AndDes".