How to Encrypt Server Configuration Passwords

2. Before executing the Encryptor.bat file. Please configure the following properties:
set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_18\ set EPHESOFT_LIBRARY_PATH=C:\dcma\WEB-INF\lib set JAR_NAME=ephesoft.jar set CLASS_NAME=com.ephesoft.dcma.encryption.core.PasswordEncryptor
3. After configuring the properties, now execute the “Encryptor.bat” file.

4. Now, enter the password to be encrypted:

5. Now press enter on the screen and the encrypted password will display as:

6. Now copy the generated encrypted password and paste in into the properties file.
You can follow the same method to generate encrypted username.

NOTE: On setting {Ephesoft-application}\WEB-INF\classes\META-INF\dcma-encryption\dcma-encryption.properties to password.use_encryption=true, the ftp.server.password also needs to be encrypted inside <Ephesoft>\Application\WEB-INF\classes\META-INF\dcma-ftp\dcma-ftp.properties since password.use_encryption property is a global level check for encryption. You might encounter an error encrypted credentials are not used. For more information, see Decryption: Algorithm Parameter is Invalid – Error.

Configuration:

In order to enable encryption in the application, update the following property:

{Ephesoft-application}\WEB-INF\classes\META-INF\dcma-encryption\dcma-encryption.properties to password.use_encryption=true