Changing the encryption key and initialization vector

The encryption key is used to encrypt/decrypt passwords from connection strings. The initialization vector is the initial value used to start an iteration.

To change the encryption key and the initialization vector, it is necessary to change the values of the initializationVector and/or encryptionKey nodes in the BizDataX Portal configuration file.

Encryption key and initialization vector generation

The encryption key can be any byte[32] value converted to the Base64 string format.

The initialization vector can be any byte[16] value converted to the Base64 string format.

Both the encryption key and the initialization vector must be in the Base64 string format.

Both the encryption key and the initialization vector are stored in the BizDataX Portal configuration file (located in the API folder of the installation directory (e.g., C:\inetpub\BizDataXPortal\API\Web.config)) in the authorizationConfiguration section.

Example:

<configuration>
  <configSections>
    <section name="authorizationConfiguration" type="Portal.Business.AuthorizationConfigurationSection"/>
  </configSections>
  <appSettings file="AppSettings.config">
    <add key="EnableSimpleMembership" value="false" />
    <add key="cors:origins" value="http://localhost:9000" />
    <add key="log4net.Config" value="log4net.config" />
    <add key="log4net.Config.Watch" value="True" />
  </appSettings>
  <authorizationConfiguration>
    <users>
      <!--This key is used for ImportRunner and DiscoveryRunner-->
      <add userKey="50b8341d-eae1-4d1e-8e7d-479dc388f5f7"/>
    </users>
      <encryption initializationVector="rlttTVA5gtL6aEKAHrL+aw==" encryptionKey="Hc75CtXdL04BceD4cFgsJiwVf1KqnMxVxhpgKEQzhco="/>
  </authorizationConfiguration>
</configuration>