Skip to content

Instantly share code, notes, and snippets.

@olim7t
Created May 6, 2014 08:37
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 olim7t/c9e70785bd7b6f135552 to your computer and use it in GitHub Desktop.
Save olim7t/c9e70785bd7b6f135552 to your computer and use it in GitHub Desktop.
import javax.crypto.Cipher;
public class CheckJceUnlimited {
public static void main(String[] args) throws Exception {
int maxAesLength = Cipher.getMaxAllowedKeyLength("AES");
boolean unlimited = maxAesLength > 128;
System.out.println("JCE unlimited strength enabled: " + unlimited);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment