- Print
- PDF
How Do I Encrypt the AUTOFORM DM Upload Module Password?
This article shows how to encrypt the password used by the AUTOFORM DM Upload module in Lasernet. The Upload module sends documents produced by Lasernet directly into AUTOFORM DM. While Lasernet stores the AUTOFORM DM credentials in an encrypted form within the build, if you are using the Environment Variables functionality, we recommend that you encrypt the AUTOFORM DM password before storing it in the environment.
To encrypt the password within the module, follow these steps:
Ensure the password field in the server setup window has the correct server password (not an environment reference).
Click the Encrypt Password button, which will launch the Password encryption dialog box.

Add an Encryption passphrase to encrypt the server password, and note this, as you will need it later for inclusion in the environment variable.
Use the Encrypt button to encrypt the server password.
The Encrypted password field will now show the new encrypted password value
Take a copy of this value, as you will need it later for inclusion in the environment variable.
Confirm the changes to close the dialogue box. The encrypted version's password will be longer.
Change the value in the Password field to ENV[DM_PASSWORD]. This will reference the Environment variables value for the encrypted password.
Lasernet is now configured for encrypted password use.
Change/Create the Environment Variables
You now need to make changes to your environment variables.
Navigate to the Windows Control Panel and select System & Security.
Navigate to System and select the Advanced tab.
Click on the Environment Variables button.
Add two system variables:
DM_PASSWORD
EFS_LN_UPLOAD_MODULE_PASSPHRASE
Under System variables use the Add button and create a variable called DM_PASSWORD.
Enter the value of your encrypted password. When adding the encrypted password to the environment, ensure that it is enclosed with ENC[ … ] (see example) to signify that it has been (ENC)rypted.
Add your second new variable, call it EFS_LN_UPLOAD_MODULE_PASSPHRASE, and give it the value of your encryption passphrase.
Example: DM_PASSWORD= ENC[tovrDrhfTVIS27FxCpkIVw==] EFS_LN_UPLOAD_MODULE_PASSPHRASE=Testing123


Test
With the environment variables correctly configured, you can now test if your encrypted password works in Lasernet.
Re-start the machine for the environment variable changes to take effect.
Load the build in Lasernet Developer.
Load the settings window for the Lasernet Upload module.
Click the Test Connection button on the Setup tab to test the connection works.

Another way to test the system is to pass some data through Lasernet to create a document that goes directly into AUTOFORM DM through the Upload module. If the document is accessible in AUTOFORM DM, the process has worked.