java.security.InvalidKeyException: Illegal key size or default parameters in android

后端 未结 5 1271
时光取名叫无心
时光取名叫无心 2020-12-08 01:40

I got the following error and I got a little stuck: Exception in thread \"main\"

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


        
5条回答
  •  不思量自难忘°
    2020-12-08 02:06

    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

提交回复
热议问题