Password encryption in CONFIG files is optional, but highly recommended. To provide an encrypted password for the database connection in a configuration file, complete the following steps.
- In the [Installation path]\Brainware Intelligent Capture\bin directory, create a new batch file and give it a meaningful name, such as CreateEncryptedPassword.bat.
-
Copy one of the following options to the batch file, replacing
MyPassword with the password you want to encrypt.
Note: The maximum character length for a password to encrypt using RSA-1024 is 30. The maximum character length for a password to encrypt using RSA-3072 is 280.
-
To encrypt the password using the internal RSA-3072 key, use the following option.
DstCrypt.exe /text "MyPassword" >> EncryptedPW_InternalKeys3072.txt
-
To encrypt the password using the internal RSA-1024 key, use the following option.
DstCrypt.exe /text "MyPassword" /keysize "1024" >> EncryptedPW_InternalKeys1024.txt
-
- Save and close the file.
- In Windows Explorer, double-click the batch file.
- From [Installation path]\Brainware Intelligent Capture\bin, open EncryptedPassword.txt in a text editor and copy the encrypted password to the clipboard.
- Open the required configuration file in a text editor.
- Search for the <connectionStrings> element.
-
In the
<add name> element, set password as an
asterisk.
<add name="Entities" Password=*>
-
In the
<appSettings> element, add a line with your
encrypted password according to the following example.
<appSettings> <add key="EncrPwd" value="The_encrypted_Password"/> </appSettings>
- Save and close the file.