title: Java "Illegal key size" despite having installed JCE Unlimited Strength Jurisdiction Policy Files
body: <p>I'm trying to use 256-bit AES encryption, but I am getting the following exception:
  <code>java.security.InvalidKeyException: Illegal key size</code></p>
  
  <p>If I use a 128-bit key, then everything works just fine.</p>
  
  <p>I've installed the JCE Unlimited Strength Jurisdiction Policy Files by replacing the two <code>.jar</code> files at <code>$JAVA_HOME$\jre\lib\security</code>. I've tried different versions of these files. I've re-installed a newer version of Java 8 and updated the PATH environment variable. Nothing works. I still get the error, and <code>Cipher.getMaxAllowedKeyLength("AES/CBC/NoPadding")</code> still returns 128.</p>