Java Security: Illegal key size or default parameters?

前端 未结 19 1856
日久生厌
日久生厌 2020-11-22 03:34

I had asked a question about this earlier, but it didn\'t get answered right and led nowhere.

So I\'ve clarified few details on the problem and I would really like t

19条回答
  •  傲寒
    傲寒 (楼主)
    2020-11-22 03:59

    With Java 9, Java 8u161, Java 7u171 and Java 6u181 the limitation is now disabled by default. See issue in Java Bug Database.


    Beginning with Java 8u151 you can disable the limitation programmatically.

    In older releases, JCE jurisdiction files had to be downloaded and installed separately to allow unlimited cryptography to be used by the JDK. The download and install steps are no longer necessary.

    Instead you can now invoke the following line before first use of JCE classes (i.e. preferably right after application start):

    Security.setProperty("crypto.policy", "unlimited");
    

提交回复
热议问题