Java Security: Illegal key size or default parameters?

前端 未结 19 1491
日久生厌
日久生厌 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:58

    Default JDK supports encryption only through 128 bit keys becuase of American restrictions. So to support encryption from 256 bit long key we have to replace local_policy.jar and US_export_policy.jars in $JAVA_HOME/java-8-oracle/jre/lib/security folder otherwise it will give:

    java.security.InvalidKeyException: Illegal key size or default

提交回复
热议问题