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 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 Data Security activity, key is Public and key is Private for Decryption Data Security activity.
- You must provide the password in plain text format.
For more help refer to the below image:
where,
DataSecurityActivityName is name of Data Security activity.