Overview
This node performs encryption or decryption on values within a JSON object. It is useful for securely handling sensitive data by encrypting it before storage or transmission, and decrypting it when needed. For example, it can encrypt user information fields or decrypt encrypted configuration data.
Use Case Examples
- Encrypting all fields in a user profile object except for non-sensitive fields like 'id' or 'timestamp'.
- Decrypting encrypted API keys stored in a configuration object before use.
Properties
| Name | Meaning |
|---|---|
| Input Data | The JSON object containing data to be encrypted or decrypted. |
| Skip Fields | Comma-separated list of field names to exclude from encryption or decryption. |
Output
JSON
json- The resulting JSON object after encryption or decryption, preserving the original structure except for skipped fields.
Dependencies
- Requires an API key credential named 'dataCryptoCredentials' containing a 32-character secret key for AES-256 encryption.
Troubleshooting
- Error if the secret key is not exactly 32 characters long; ensure the key length is correct for AES-256.
- Encryption or decryption failures may occur if input data is not a valid JSON object or contains unsupported types.
- Decryption returns the original value if the ciphertext is invalid or corrupted, which might indicate incorrect key or data tampering.