This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Security and the fly likes java.security.InvalidKeyException: Illegal key size or default parameters error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "java.security.InvalidKeyException: Illegal key size or default parameters error" Watch "java.security.InvalidKeyException: Illegal key size or default parameters error" New topic
Author

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

sudheer kiran
Ranch Hand

Joined: Jun 26, 2008
Posts: 237



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.


Sudheer
SCWCD, SCJP 5
James Sabre
Ranch Hand

Joined: Sep 07, 2004
Posts: 781

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?


Retired horse trader.
 Note: double-underline links may be advertisements automatically added by this site and are probably not endorsed by me.
 
Don't get me started about those stupid light bulbs.
 
subject: java.security.InvalidKeyException: Illegal key size or default parameters error
 
Similar Threads
web service security, Invalid Key exception.
Exception in thread "main" java.security.InvalidKeyException:
Interoperability between WCF and WSIT
NoSuchAlgorithmException after java 6 migration
AES Encryption