Why are the JCE Unlimited Strength not included by default?

后端 未结 3 570
你的背包
你的背包 2020-12-07 20:55

Setup

  • Java doesn\'t offer out-of-the-box support for the JCE Unlimited Strength Policy Files
  • This prevents users from using AES-256, the largest key
3条回答
  •  时光取名叫无心
    2020-12-07 21:18

    Now Unlimited cryptography enabled by default in the JDK

    The JDK uses the Java Cryptography Extension (JCE) Jurisdiction Policy files to configure cryptographic algorithm restrictions. Previously, the Policy files in the JDK placed limits on various algorithms. This release ships with both the limited and unlimited jurisdiction policy files, with unlimited being the default. The behavior can be controlled via the new 'crypto.policy' Security property found in the /lib/java.security file. Please refer to that file for more information on this property.

    See: http://www.oracle.com/technetwork/java/javase/8u161-relnotes-4021379.html#JDK-8170157

提交回复
热议问题