Overview
This node performs AES-256-CBC encryption or decryption on multiple specified fields within each input item. It supports mapping multiple input fields to output fields for batch processing in a single execution. The node is useful for securely encrypting sensitive data fields or decrypting previously encrypted data in workflows, such as protecting user information or handling secure communications.
Use Case Examples
- Encrypting user email and phone number fields before storing them in a database.
- Decrypting encrypted transaction details for processing in a financial application.
Properties
| Name | Meaning |
|---|---|
| Profile | Selects the encryption profile to use, either 'Default' or 'POS', which determines the key, IV, and encoding settings. |
| Fields | Defines multiple input/output field mappings to specify which fields to encrypt or decrypt in each item. |
| If Missing Input | Determines the behavior when an input field is missing: either write an empty string to the output field or skip writing the output field. |
Output
JSON
- Contains the encrypted or decrypted value of the corresponding input field as specified in the Fields property.
Dependencies
- Requires AES key credentials containing keys, initialization vectors (IVs), and encoding settings for the selected profile.
Troubleshooting
- Error if AES key or IV is missing in credentials: Ensure that the Default or POS keys and IVs are properly configured in the node credentials.
- If input fields specified in the Fields property are missing in the input data, the node either writes an empty string or skips the output field based on the 'If Missing Input' setting.