You can override an encryption/decryption key at runtime. Use PGP type KeyManager in Data Security for encrypting/decrypting the key.
Follow these steps to override key:
- Set the Base64 Public/Private encoded key in String Format in context variable Service.DataSecurityActivityName.keyInStringFormat at runtime.
- Set the context variable Service.DataSecurityActivityName.privateKeyPassword to override the private key password.
- For Encryption and Decryption Data Security, the key is Public and Private respectively.
- You must provide the password in plain text format.
You can use Context Variable to put Context in variable. For more help, refer to the below image:
where,
DataSecurityActivityName is name of Data Security activity.
You can use any utility to encode the key into Base64.