Actions108
- AI Actions
- Transcribe
- Detect Brand
- Extract Contact Information
- Mood Detection
- Detect Adult Content
- Enitity Detection
- Language Detection
- Too Long To Read
- Check Content Policy
- Detect Faces
- Generate Python Code
- Picture Text Recognition
- Detect Color
- Generate Image
- PDF OCR
- Translation
- Detect Email Type
- Generate Javascript Code
- Picture Object Recognition
- Business Actions
- Calculate Actions
- Code Actions
- Convert Actions
- Crypto Actions
- Date & Time Actions
- Generate Actions
- Image Actions
- Operator Actions
- PDF Actions
- Storage Actions
- Text Actions
- User Actions
Overview
This node provides cryptographic utilities, specifically allowing users to decrypt ciphertext using various encryption algorithms. It supports multiple crypto types such as AES, DES, TripleDES, Rabbit, RC4, and RC4Drop. This node is useful in scenarios where encrypted data needs to be securely decrypted within an automation workflow, for example, decrypting sensitive information received from external systems or APIs before further processing.
Practical examples include:
- Decrypting messages or tokens encrypted with a secret key.
- Handling encrypted configuration values or credentials.
- Processing encrypted payloads in data pipelines.
Properties
| Name | Meaning |
|---|---|
| Code Variables | A collection of code variables defined in the code editor that can be used as inputs for custom scripts. Each variable has a name/ID and a value. |
| Ciphertext | The encrypted text string that you want to decrypt. |
| Secret Key | The secret key string used for decryption. |
| Crypto Type | The cryptographic algorithm to use for decryption. Options: AES, DES, TripleDES, Rabbit, RC4, RC4Drop. |
Output
The output is a JSON array containing the decrypted result(s) of the input ciphertext(s). Each item corresponds to one input and contains the decrypted plaintext or an error message if decryption failed.
If the node processes multiple inputs, it returns an array of decrypted outputs accordingly.
No binary data output is indicated for this operation.
Dependencies
- Requires an API key credential for authentication with the external "0CodeKit" service that performs the cryptographic operations.
- The node sends requests to the external API endpoints corresponding to the selected resource ("crypto") and operation ("decrypt").
- No additional environment variables are explicitly required beyond the API key credential.
Troubleshooting
Common issues:
- Incorrect secret key or mismatched crypto type will cause decryption to fail or produce invalid output.
- Providing malformed ciphertext (e.g., corrupted or incomplete encrypted string) may result in errors.
- Network or authentication failures with the external API will prevent successful decryption.
Error messages:
- Errors returned by the external API will be propagated. Typical messages might indicate invalid keys, unsupported cipher types, or malformed ciphertext.
- To resolve, verify the correctness of the secret key, ensure the ciphertext is properly formatted, and confirm the selected crypto type matches the encryption method used.
Links and References
- Cryptography concepts
- AES Encryption
- DES Encryption
- Triple DES
- RC4 Algorithm
- Rabbit Stream Cipher
- n8n Expressions Documentation (for using expressions in variable names)