Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

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

 
Ranch Hand
Posts: 237
MyEclipse IDE Firefox Browser 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.

 
Ranch Hand
Posts: 781
Netbeans IDE Ubuntu Java
  • 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?
    Bookmark Topic Watch Topic
  • New Topic