0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Crypto → Decrypt a Ciphertext

AI-generated

Overview

The Crypto - Decrypt a Ciphertext operation in this custom n8n node allows users to decrypt encrypted text using a specified cryptographic algorithm and secret key. This is useful in workflows where sensitive data has been previously encrypted (e.g., for secure storage or transmission) and needs to be decrypted for further processing, analysis, or display.

Common scenarios:

  • Decrypting user credentials or tokens stored in an encrypted format.
  • Processing incoming data from external systems that use encryption for security.
  • Automating secure document or message handling within business processes.

Example:
A workflow receives encrypted customer information via API, uses this node to decrypt the data with a shared secret key, and then continues processing the plaintext information.

Properties

Name Meaning
Ciphertext The encrypted text you want to decrypt.
Secret Key The secret key used for decryption. Must match the key used during encryption.
Crypto Type The cryptographic algorithm to use for decryption. Options: AES, DES, TripleDES, Rabbit, RC4, RC4Drop.

Output

The output will be a JSON object containing the result of the decryption. Typically, it includes:

{
  "result": "<decrypted plaintext>"
}
  • If decryption fails, and "Continue On Fail" is enabled, the output may include an error field:
{
  "error": "Error message"
}

Dependencies

  • External Service: Requires access to the CodeKit API (as indicated by the required codeKitApi credential).
  • n8n Configuration: You must set up the codeKitApi credential in your n8n instance.

Troubleshooting

Common Issues:

  • Invalid Key or Algorithm: If the secret key or crypto type does not match what was used for encryption, decryption will fail.
  • Malformed Ciphertext: If the ciphertext is corrupted or not properly formatted, decryption cannot proceed.
  • Missing Credentials: If the codeKitApi credential is not configured, the node will not function.

Error Messages:

  • "error": "Error: ..." — Indicates a problem with input parameters or communication with the API. Double-check your inputs and credentials.

Links and References

Discussion