If you are getting this error
Exception in thread "main" java.lang.RuntimeException: NYI
at cryptix.jce.provider.elgamal.ElGamalCipher.engineGetParameters(ElGamalCipher.java:120)
at javax.crypto.Cipher.a(DashoA12275)
Reason is the suns default policy doesn't have the strength to encrypt/decrypt with higher strength keys.
Got to SUN downloads and install/replace it in you JRE/lib/security
Other Downloads
Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files 6
2 Comments:
Hi,
Is it possible to include the policy files with your application so avoiding copying the policy files into the JRE folder?
It is so annoying that the JRE has to be patched for this.
Thanks,
Andras
Post a Comment