This content applies to:
This example shows how to encrypt sensitive values, store them in an Excel connection file and create corresponding data fields in the Crypto Data Source.
Prerequisites
To follow the example in this task:
You have created a connection file in Excel containing the sensitive connection data you want to encrypt.
You have added an Excel data source to your data map based on the connection Excel file.
Steps
Adding and configuring the Crypto Data Source
In Microsoft Word, Excel or PowerPoint, go to the dox42 ribbon and select Data Map.

dox42 ribbon
The Data Map Designer window opens and previously added data sources appear.

Data Map Designer window
Select the Crypto button.
The Crypto window opens.
Crypto window
On the Data Source tab, configure the following settings:
In the Name field, enter a name for the Crypto Data Source.
In the Master Password field, enter a password to protect access to the configuration of the Crypto Data Source.
Note
The password must include letters, symbols and numbers, with a minimum length of 8 characters.
Important
You must remember this password. Otherwise you cannot access this data source afterwards.
Select OK below the Master Password field.
The Encryption Key field and the remaining tabs become available for configuration.
In the Encryption Key field, enter a key to be used for encrypting and decrypting sensitive values.
Best practices for the encryption key
There are no specific requirements regarding the length or characters of the encryption key. Special characters are also permitted.
Keep a secure record of your encryption key and master password. To reproduce the same encrypted values in another data map, use the same master password and encryption key.
Avoid changing the encryption key after encrypting sensitive values. If you change the key, you must re-encrypt all affected values and update them in your connection Excel file.
Go to the Encrypt Values tab.
In the Clear Text field, enter the value you want to encrypt, for example, a password from your connection Excel file.
Encrypting sensitive values
Go to the Encrypt Values tab.
In the Clear Text field, enter the value you want to encrypt, for example, a password from your connection Excel file.

Encrypt values tab in Crypto window
Select the Encrypt button.
The encrypted value appears in the Encrypted Text field.
Encrypt values tab with encrypted password
Select the Copy to Clipboard button to copy the encrypted value to the clipboard.
Storing the encrypted values in the connection Excel file
Open your connection Excel file.
.png)
Connection Excel file with username and password
Replace the original plain text value with the encrypted value from the clipboard.
Repeat the encryption process for each sensitive value you want to protect and replace the corresponding values in your connection Excel file.
.png)
Connection Excel file with encrypted username and password
Save and close the Excel file.
(Optional) Allowing access for additional/custom data sources and custom output actions
If you want to make the decrypted values available to additional/custom data sources or custom output actions, configure the access permissions on the Allowed Data Sources & Output Actions tab.
Note
No additional configuration is required for basic data sources like SharePoint, Excel, XML/JSON, etc.
In the Crypto window, go to the Allowed Data Sources & Output Actions tab.
Select the Include checkboxes next to the data sources where you want the decrypted values to be available. In this example, the D365 FSCM data sources.
Add an Output Action for which you want the decrypted values to be available.
.png)
Allowed Data Sources & Output Actions tab settings
Creating Crypto data fields
In the Crypto window, go to the Fields tab.
To create a new data field, configure the following settings:
Click in the Data Field column to select the data field from your Excel data source containing the encrypted value.
In the Data Field Name column, enter a name for the new data field.
Leave the Value column empty (only populate this column with encrypted values if you do not use an Excel connection file).
Repeat the previous step for each encrypted value you want to make available via the Crypto Data Source.
.png)
Fields tab with Crypto data fields
Select OK to save your changes and close the Crypto window.
The new data fields are now available for use in other data sources.
Note
Unlike regular data fields, the data fields created in the Crypto Data Source are not displayed in the dox42 Data Fields explorer. They are only available in selected configuration fields intended for sensitive data.
Save the data map.
Result
You have created a Crypto data source. The sensitive connection data is now stored in encrypted form in your Excel connection file. The corresponding data fields in the Crypto Data Source provide the decrypted values for use in selected configuration fields of other data sources.