Encrypting a Password for a Database Connection String - Brainware Intelligent Capture - Foundation 23.1 - Foundation 23.1 - Brainware - external

Brainware Intelligent Capture Installation

Platform
Brainware
Product
Brainware Intelligent Capture
Release
Foundation 23.1
License

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.

  1. In the [Installation path]\Brainware Intelligent Capture\bin directory, create a new batch file and give it a meaningful name, such as CreateEncryptedPassword.bat.
  2. 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

  3. Save and close the file.
  4. In Windows Explorer, double-click the batch file.
  5. From [Installation path]\Brainware Intelligent Capture\bin, open EncryptedPassword.txt in a text editor and copy the encrypted password to the clipboard.
  6. Open the required configuration file in a text editor.
  7. Search for the <connectionStrings> element.
  8. In the <add name> element, set password as an asterisk.
    <add name="Entities" Password=*>
  9. 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>
  10. Save and close the file.