PBEWithMD5AndDes java.security.nosuchalgorithmexception

Posted on 2003-03-14
Medium Priority
Last Modified: 2012-06-21
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?
Question by:JavaStarter
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 35

Accepted Solution

girionis earned 140 total points
ID: 8137221

Author Comment

ID: 8137656
Thanks girionis, I found the solution.

SecretKeyFactory skf = SecretKeyFactory.getInstance(algorithm);

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


Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses
Course of the Month9 days, 23 hours left to enroll

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question