java.security.InvalidKeyException: Illegal key size

前端 未结 3 876
無奈伤痛
無奈伤痛 2020-12-09 11:18

When I run this code in Android it produces no errors, but when I run it in a standard Java program it produces the exception: java.security.InvalidKeyException: Illegal key

3条回答
  •  清歌不尽
    2020-12-09 11:45

    It's not stated clearly in README that "JCE Unlimited Strength Jurisdiction Policy Files" should be copied to jre inside your JDK, otherwise it would not work. Path for files should be: /path/to/jdk1.7.0_xx/jre/lib/security

提交回复
热议问题