--- title: "How Do I Encrypt the AUTOFORM DM Upload Module Password?" slug: "how-do-i-encrypt-the-autoform-dm-upload-module-password" description: "This article explains how to encrypt the password used by the AUTOFORM DM upload module in Lasernet. Read for more information." tags: ["Encryption", "Variable", "Lasernet", "Environments"] updated: 2024-06-25T12:27:16Z published: 2024-06-25T12:27:17Z canonical: "kb.lasernetgroup.com/how-do-i-encrypt-the-autoform-dm-upload-module-password" --- > ## Documentation Index > Fetch the complete documentation index at: https://kb.lasernetgroup.com/llms.txt > Use this file to discover all available pages before exploring further. # 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: 1. Ensure the password field in the server setup window has the correct server password (not an environment reference). 2. Click the **Encrypt Password** button, which will launch the **Password encryption** dialog box. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-HSTYFETY.png) 1. Add an **Encryption passphrase** to encrypt the server password, and note this, as you will need it later for inclusion in the environment variable. 2. Use the **Encrypt** button to encrypt the server password. The **Encrypted password** field will now show the new encrypted password value 1. Take a copy of this value, as you will need it later for inclusion in the environment variable. 2. Confirm the changes to close the dialogue box. The encrypted version's password will be longer. 3. 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. 1. Navigate to the Windows Control Panel and select **System & Security**. 2. Navigate to **System** and select the **Advanced** tab. 3. Click on the **Environment Variables** button. 4. Add two system variables: - DM_PASSWORD - EFS_LN_UPLOAD_MODULE_PASSPHRASE 1. Under **System variables** use the **Add** button and create a variable called **DM_PASSWORD**. 2. 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. 3. 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** ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-KNLAY2AJ.png) ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-BF8IDOYL.png) ## Test With the environment variables correctly configured, you can now test if your encrypted password works in Lasernet. 1. Re-start the machine for the environment variable changes to take effect. 2. Load the build in Lasernet Developer. 3. Load the settings window for the **Lasernet Upload** module. 4. Click the **Test Connection** button on the **Setup** tab to test the connection works. ![](https://cdn.document360.io/c831ef63-c6b3-48ee-b443-3e33644e4e2e/Images/Documentation/image-7FMT339K.png) 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.