import javax.crypto.Cipher;
public class CipherClass
{
public static void main(String[] args)
{
Cipher c=Cipher.getInstance("DES");
}
}
Compiling this file gives me a java.security.NoSuchAlgorithmException. Kindly guide me. I'm using jdk 1.6.
Printable View
import javax.crypto.Cipher;
public class CipherClass
{
public static void main(String[] args)
{
Cipher c=Cipher.getInstance("DES");
}
}
Compiling this file gives me a java.security.NoSuchAlgorithmException. Kindly guide me. I'm using jdk 1.6.
You must use a try/catch statement surrounding your attempt at getting the Cipher instance. Your error message tells you about an Exception. ;)
Welcome to the Java Forums! See you around. :)