# Re: NoSuchAlgorithmException: algorithm DES not available

Jan Luehe (Jan.Luehe@Eng)
Tue, 1 Jul 1997 17:19:45 -0700 (PDT)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: spiliou@iceht.forth.gr: "Questions about JDBC security"
- Previous message: spiliou@iceht.forth.gr: "Question About JDBC security"
- Maybe in reply to: Pavlov, Tony: "NoSuchAlgorithmException: algorithm DES not available"

    Date: Tue, 1 Jul 1997 17:19:45 -0700 (PDT)

    From: Jan Luehe <Jan.Luehe@Eng>

    Subject: Re: NoSuchAlgorithmException: algorithm DES not available

    To: java-security@web2.javasoft.com, Pavlovtp@MSX.UPMC.EDU

Tony:

> I just downloaded JCE 1.1. I can not get the example working.
>
> I'm using NT 4.0 server and JDK 1.1.2.
>
> Please, help!

Marianne's instructions (attached below) might help.

Thanks,

Jan

---------------------------------------------------------------------

Date: Fri, 27 Jun 1997 13:45:48 -0700
From: Marianne Mueller <mrm@Eng>
To: dmiller@preemptive.com
CC: java-security@web2.javasoft.com
Subject: Re: quick question on DES in jce

Hi,

This should work OK using the code you cite - you might need to make
sure the jce.zip package is installed in the same place as your other
JDK zip file.

>From the README,

Once you have installed the JCE, you need to add the zip file to your
CLASSPATH.

On Solaris,

% setenv CLASSPATH <your-jdk-directory>/lib/jce.zip

On Windows,

% set CLASSPATH=<your-jdk-directory>\lib\jce.zip

If you already have a JDK zip file explicitly on your CLASSPATH, then
make sure this one precedes that.

You shouldn't need to have any JDK zip file explicitly on your
CLASSPATH, though. People sometimes do that but it shouldn't be
required.

Here's the typical way to initialize a cipher object for DES:

// Initialize a cipher object for DES

cipher = Cipher.getInstance("DES/ECB/PKCS#5");
cipher.initEncrypt(desKey);

The JCE distribution has a simple demo file that uses that.

Marianne

- Next message: spiliou@iceht.forth.gr: "Questions about JDBC security"
- Previous message: spiliou@iceht.forth.gr: "Question About JDBC security"
- Maybe in reply to: Pavlov, Tony: "NoSuchAlgorithmException: algorithm DES not available"