java.security.NoSuchAlgorithmException: Algorithm DES not available
843811Apr 15 2005 — edited Apr 24 2005the code below is available on jdk1.3.1_08.
I added cryptix.jce.provider.CryptixCrypto to java.security and use jars below.
code
javax.crypto.SecretKeyFactory keyFactory = javax.crypto.SecretKeyFactory.getInstance("DES");
java.security file
#
# List of providers and their preference orders (see above):
#
security.provider.1=sun.security.provider.Sun
security.provider.2=com.sun.rsajca.Provider
### I added the provider below. ###
security.provider.3=cryptix.jce.provider.CryptixCrypto
jars
jcert.jar
cryptix-jce-api.jar
cryptix-jce-provider.jar
jsse.jar
I changed jdk1.3.1_08 to jdk1.4.2_06,
and edited the java.security and used jars the same as jdk1.3.1_08.
#
# List of providers and their preference orders (see above):
#
### I added the provider below. ###
security.provider.1=cryptix.jce.provider.CryptixCrypto
security.provider.2=sun.security.provider.Sun
security.provider.3=com.sun.net.ssl.internal.ssl.Provider
security.provider.4=com.sun.rsajca.Provider
security.provider.5=com.sun.crypto.provider.SunJCE
security.provider.6=sun.security.jgss.SunProvider
I got the exception below.
java.security.NoSuchAlgorithmException: Algorithm DES not available
at javax.crypto.SunJCE_b.a(DashoA6275)
at javax.crypto.SecretKeyFactory.getInstance(DashoA6275)
I want to work the code on jdk1.4.2_06.
does anyone tell me how to work it.