0-CodeKit icon

0-CodeKit

A toolbox of no-code utilities

Overview

The Crypto - Decrypt a Ciphertext operation in the 0-CodeKit n8n node allows users to decrypt encrypted text using a specified cryptographic algorithm and secret key. This is useful for workflows where sensitive data needs to be securely transmitted or stored, and later decrypted for use—such as processing confidential information, handling secure tokens, or integrating with systems that require encrypted communication.

Practical examples:

  • Decrypting user credentials or API tokens received from another system.
  • Processing encrypted files or messages within an automated workflow.
  • Integrating with third-party services that provide encrypted payloads.

Properties

Name Meaning
Ciphertext The encrypted text (ciphertext) 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 will include the decrypted plaintext, for example:

{
  "result": "decrypted text here"
}

If an error occurs and "Continue On Fail" is enabled, the output may look like:

{
  "error": "Error message describing what went wrong"
}

Dependencies

  • External Service: Requires access to the CodeKit API endpoint configured in the node's credentials (codeKitApi).
  • n8n Configuration: You must set up the codeKitApi credential in your n8n instance.

Troubleshooting

Common Issues:

  • Invalid Secret Key: If the provided secret key does not match the one used for encryption, decryption will fail.
  • Incorrect Crypto Type: Using a different algorithm than was used for encryption will result in errors or unreadable output.
  • Malformed Ciphertext: If the ciphertext is corrupted or incomplete, decryption cannot proceed.

Common Error Messages:

  • "Invalid key length": Ensure the secret key matches the requirements of the selected algorithm.
  • "Decryption failed" or similar: Double-check the ciphertext, secret key, and crypto type.
  • "Missing required parameter": Make sure all required fields are filled.

Links and References

Discussion