Encrypt/Decrypt DPL
The Data Production Libraries (DPLs) that are supported in AIQ are CSV files in a readable format. This allows AIQ to encrypt the contents of the file so that the file is not in a readable format. It is encrypted with a password so that can be decrypted during run time from the Scenario Editor.
Support for Encrypted DPL was deprecated in release 5.3.0 of AIQ. Scripts using encrypted DPL files will continue to run, but descriptions will not be possible.
This option has been removed from the Test Data page. You can migrate encrypted DPL to HASH DPL files before upgrading to release 5.3.0.
See Encrypt/Decrypt DPL in Scenario Editor for more information.
Considerations
-
This feature is implemented using the SHA-256 Algorithm as the secure option.
-
For this encryption to work as expected, it is required to have Java 8 build 251 installed and configured to use for AIQ.
-
For any other build that is lesser than Java 8 build 251, there are certain files that need to be added to the JDK build. See Fixing java.security.InvalidKeyException: Illegal key size exception.
-
However, it is strongly recommended that you use Java 8 build 251 so that you do not have to use other jars.
-
Since JDK is paid version as of April 2020, there is support for OpenJDK as well, The file encryption works using OpenJDK with version 1.8.0_252.
Video explaining encryption-decryption of DPL
Encrypting a DPL
This option is available for users and administrators.
-
From AIQ, navigate to Test Data > Encrypt/Decrypt DPL.
-
Click Browse to select the Source File from the local directory or from the configured repository.
NOTE: As of now this works only for HASH DPL and not for JS DPL yet.
-
Select the Destination File. Provide a new name to the CSV file used for decrypting the data. If you choose an existing file, the file will be replaced with new contents.
-
Provide a valid Password.
-
Click the Encrypt File to encrypt the file.
Make sure the password is remembered, because the same password should be provided to decrypt the password when running from the scenario as well.
-
AIQ notifies you that the file has been successfully encrypted and saved.
Before Encryption
After Encryption
Decrypting a DPL
The files can be decrypted by choosing the decrypted file and again choosing a different file to decrypt and providing the same password.
Saving File to Repository
When saving the encrypted files to the repository, you will also have an option to provide the commit message.
