summary some java tech:
try to encrytion my files by PGP, encounter following error:
java.security.InvalidKeyException: Illegal key size or default parameters
after seaching all web posed: the solution as following
If you see this it means the unrestricted policy files for the JVM you are using have not been installed. you can find out them from SDK download website(Sun or IBM), find out the SDK policy file, download them, and put them to your jre lib.(refer http://www.bouncycastle.org/wiki/display/JA1/Frequently+Asked+Questions)
most of time, eclipse use dir jre/lib/ext to import the policy file. some web server use /jre/lib/security to import the policy file. you can try to put those unrestricted files to both directory.