Skip to content

Instantly share code, notes, and snippets.

@Dispader
Created May 2, 2013 19:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Dispader/2ea23a05a825b031cbfa to your computer and use it in GitHub Desktop.
Save Dispader/2ea23a05a825b031cbfa to your computer and use it in GitHub Desktop.
import javax.crypto.Cipher;
int maxKeyLen = Cipher.getMaxAllowedKeyLength("AES");
System.out.println("maximum supported AES key length: " + maxKeyLen);
System.out.print("Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files ");
if ( maxKeyLen <= 128 ) {
System.out.println("not intsalled.");
} else {
System.out.println("intsalled.");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment