Consider the following troubleshooting tips when you use the encryption utility or if you encounter issues after you run the utility:
javax.crypto.BadPaddingException: Error finalising cipher data: pad block corrupted at org.bouncycastle.jcajce.provider.BaseCipher.engineDoFinal(Unknown Source) at javax.crypto.Cipher.doFinal(Cipher.java:2168) at com.applimation.util.AES256Utility.cbcDecryptBc(AES256Utility.java:382) at com.applimation.dao.impl.AES256EncryptorDaoImpl.decryptThePassword(AES256EncryptorDaoImpl.java:66)
Use case
You might notice this issue when you log in to Data Archive or when you run the utility. The following issues generate the error:
The master key is old.
The master key is corrupt.
Resolution
If the master key is old, use the new master key.
If the master key is corrupt, use the backup master key file.
This error occurs if the AESEncryption utility does not run successfully because of session interruption or unexpected session closure while utility is running.
Resolution
Run the utility again and choose the Resume flow.
java.security.InvalidKeyException: Illegal key size or default parameters3. Caused by: java.security.InvalidKeyException: Illegal key size or default parameters at javax.crypto.Cipher
Use case
This error occurs if you use an unsupported JDK version to run the utility.
Resolution
Use the JDK bundled with the installer and available in the <Data Archive install directory>.
java.io.FileNotFoundException: C:\Installation_Directory\key.file (The system cannot find the file specified) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(FileInputStream.java:195)
Use case
The error occurs if the master key is not available in the location specified in the conf.properties file or in the installation directory.
Resolution
Copy the master key to the Data Archive installation directory or to the custom path that you specified in the conf.properties file and run the utility.