I got the following error and I got a little stuck: Exception in thread \"main\"
java.security.InvalidKeyException: Illegal key size or default parameters
a         
        
Default JDK supports encryption only through 128 bit keys becuase of American restrictions. So to support encryption from 256 bit long key we have to replace local_policy.jar and US_export_policy.jars in $JAVA_HOME/java-8-oracle/jre/lib/security folder otherwise it will give java.security.InvalidKeyException: Illegal key size or default