Java: One-liner check if you have the JCE Unlimited Strength Jurisdiction Policy

In case you installed the the “stronger” Java Crytography Extension, you can check with:

$JAVA_HOME/bin/jrunscript -e 'print (javax.crypto.Cipher.getMaxAllowedKeyLength("RC5") >= 256);'

Leave a Reply

Your email address will not be published. Required fields are marked *