Issue Details:

When encrypting passwords customers may see and Error message in the logs during the startup of the Ephesoft Application as below:

4.1.2.0 Windows Server 2012 R2 2017-03-29 11:38:21,723 ERROR set_variables – User Defined Java Class com.ephesoft.dcma.encryption.core.EncryptorDecryptor – Decryption : Algorithm parameter is invalid

java.security.InvalidAlgorithmParameterException: Salt must be 8 bytes long

at com.sun.crypto.provider.PBES1Core.init(PBES1Core.java:234)

at com.sun.crypto.provider.PBEWithMD5AndDESCipher.engineInit(PBEWithMD5AndDESCipher.java:221)

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

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 com.ephesoft.dcma.encryption.core.EncryptorDecryptor.startCrypting(EncryptorDecryptor.java:64)

at com.ephesoft.dcma.encryption.core.EncryptorDecryptor.decryptString(EncryptorDecryptor.java:161)

at com.ephesoft.dcma.encryption.core.PasswordDecryptor.getDecyrptedString(PasswordDecryptor.java:110)

at com.ephesoft.dcma.encryption.core.PasswordDecryptor.decrypt(PasswordDecryptor.java:81)

at Processor.processRow(Processor.java:17)

at org.pentaho.di.trans.steps.userdefinedjavaclass.UserDefinedJavaClass.processRow(UserDefinedJavaClass.java:1018)

at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62)

at java.lang.Thread.run(Thread.java:745)

 

NOTE:

Please note that this ERROR message doesn’t impact the encryption functionality in any way and if configured properly then the password encrypted will work without any issues.

 

How to FIX:

The error that is observed is because we have not encrypted the login username as well as password in etl-variable.properties file.
In case of encryption, this is confirmed that etl-variables.properties file requires both  ephesoft.loginusername and ephesoft.loginpassword in encrypted format. Once the username is encrypted as well in etl-variables.properties file then this issue will not be observed.

Was this article helpful to you?

Abhishek Jain

Comments are closed.