Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

encryption using JCE

843811Jul 12 2001 — edited Jul 12 2001
hi i am new to jce i am using both JCE and ABAJCE

whenever i am using the key generator

here is the some part of my code


import javax.crypto.*;
import javax.crypto.spec.*;
import java.security.*;
import java.security.spec.*;
import java.security.Security;
import au.net.aba.crypto.provider.ABAProvider;
public class crypt
{

public static void main (String kl[])
{
try
{

//Provider sunJce = new com.sun.crypto.provider.SunJCE();
//Security.addProvider(sunJce);



Security.addProvider(new ABAProvider());


KeyGenerator desGen= KeyGenerator.getInstance("DES");
/***on the above line i get the exception
***********java.security.NoSuchAlgorithmException: Algorithm DES not available

just tell me what are the possible solution to this problem

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Aug 9 2001
Added on Jul 12 2001
1 comment
138 views