How To Run encrypt.sh Script When it Fails with an "Illegal key size" Error?

Problem: When you are located outside of the USA, you may run into an Illegal key size error when you run the encrypt.sh script on your terminal. See below for the detailed Error message.

Cause: This problem occurs because Encrypting passwords using AES256 (encryption methodology) may not work in countries other than the US.

Resolution: In order to use AES256, please update the JVM by downloading the java cryptographic extension available here:

tamrplt@VmDataTamrPLT01:/datadisk1/tamr-unify/tamr$ export JAVA_HOME="/datadisk1/tamr-unify/jdk1.8.0_111/bin"

tamrplt@VmDataTamrPLT01:/datadisk1/tamr-unify/tamr$ $JAVA_HOME/java -jar ./libs/encrypt-utils.jar -AES256 mypwd

Exception in thread "main" com.tamr.common.encrypt.EncryptionException: org.cryptonode.jncryptor.CryptorException: Caught InvalidKeyException. Do you have unlimited strength jurisdiction files installed?

            at com.tamr.common.encrypt.AesSymmetricEncryptor.encrypt(AesSymmetricEncryptor.java:58)

            at com.tamr.common.encrypt.Encryption.encrypt(Encryption.java:45)

            at com.tamr.common.encrypt.Encryption.encryptAndWrap(Encryption.java:57)

            at com.tamr.common.encrypt.UtilsMain.run(UtilsMain.java:28)

            at com.tamr.common.encrypt.UtilsMain.main(UtilsMain.java:12)

Caused by: org.cryptonode.jncryptor.CryptorException: Caught InvalidKeyException. Do you have unlimited strength jurisdiction files installed?

            at org.cryptonode.jncryptor.AES256JNCryptor.encryptData(AES256JNCryptor.java:494)

            at org.cryptonode.jncryptor.AES256JNCryptor.encryptData(AES256JNCryptor.java:345)

            at org.cryptonode.jncryptor.AES256JNCryptor.encryptData(AES256JNCryptor.java:361)

            at com.tamr.common.encrypt.AesSymmetricEncryptor.encrypt(AesSymmetricEncryptor.java:52)

        ... 4 more

Caused by: java.security.InvalidKeyException: Illegal key size

            at javax.crypto.Cipher.checkCryptoPerm(Cipher.java:1039)

            at javax.crypto.Cipher.implInit(Cipher.java:805)

            at javax.crypto.Cipher.chooseProvider(Cipher.java:864)

            at javax.crypto.Cipher.init(Cipher.java:1396)

            at javax.crypto.Cipher.init(Cipher.java:1327)

            at org.cryptonode.jncryptor.AES256JNCryptor.encryptData(AES256JNCryptor.java:481)

            ... 7 more