Forum Stats

  • 3,782,768 Users
  • 2,254,685 Discussions
  • 7,880,156 Comments

Discussions

encryption using JCE

843811
843811 Member Posts: 49,851
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

This discussion has been closed.