Skip to content

Instantly share code, notes, and snippets.

@pulkitsinghal
Created March 5, 2013 18:39
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 pulkitsinghal/5092928 to your computer and use it in GitHub Desktop.
Save pulkitsinghal/5092928 to your computer and use it in GitHub Desktop.
Find out if the jar files required for JCE unlimited strength are present and in use on your machine or not.
import javax.crypto.Cipher;
public class JCETest {
public static void main(String[] args) throws Exception {
boolean limit = Cipher.getMaxAllowedKeyLength("RC5")<256;
System.out.println(limit);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment