• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.security.InvalidKeyException: Illegal key size or default parameters error

 
sudheer kiran
Ranch Hand
Posts: 237
Firefox Browser MyEclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


i have just downloaded jdk1.6.0_23 and installed.
environment variables are:
JAVA_HOME = C:\Program Files\Java\jdk1.6.0_23
path = JAVA_HOME\bin;
classpath = JAVA_HOME\lib...;

local_policy.jar and US_export_policy.jar files are there in C:\Program Files\Java\jdk1.6.0_23\jre\lib\security folder.

1)still why i am getting the following error :
java.security.InvalidKeyException: Illegal key size or default parameters error
at javax.crypto.Cipher.a(DashoA13*..)
at javax.crypto.Cipher.a(DashoA13*..)
at javax.crypto.Cipher.a(DashoA13*..)
at javax.crypto.Cipher.init(DashoA13*..)
at javax.crypto.Cipher.init(DashoA13*..)



2)can i use US_export_policy.jar withought any licence in india.
very thank full to you all if i get any suggestions for to solve this exception.

 
James Sabre
Ranch Hand
Posts: 781
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Those jars are in the jre/lib/security directory even if you have not installed the 'unlimited strength' files. Installing the 'unlimited strength' files just replaces those jars. If you did not explicitly install the 'unlimited strength' files then you should.

Why do you think you need a bigger key than 128 bits?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic