Crypto Tools

Universal crypto operations: encryption, decryption, hashing, and more

Overview

The node provides a variety of cryptographic operations, including encoding/decoding, encryption/decryption, hashing, HMAC generation, and key derivation. Specifically, the Base64 Decode operation decodes Base64-encoded input data back into its original UTF-8 string form.

This node is useful in scenarios where data is received or stored in Base64 format (commonly used for safe transmission or storage of binary data as text) and needs to be converted back to readable or processable text. For example, decoding Base64-encoded API responses, email attachments, or encoded configuration values.

Properties

Name Meaning
Input Data The Base64-encoded string to decode. This is the data that will be converted back to its original UTF-8 representation.

Output

The output JSON contains the following fields:

  • operation: The name of the operation performed, here it will be "base64Decode".
  • result: The decoded UTF-8 string obtained from the Base64 input.
  • success: A boolean indicating if the operation was successful (true).
  • inputLength: The length of the input Base64 string.

Example output JSON:

{
  "operation": "base64Decode",
  "result": "decoded UTF-8 string here",
  "success": true,
  "inputLength": 24
}

No binary data output is produced by this operation; the result is always a UTF-8 string.

Dependencies

  • Uses Node.js built-in Buffer class for Base64 decoding.
  • No external services or API keys are required.
  • No special environment variables or n8n credentials needed.

Troubleshooting

  • Common issues:

    • Input data not properly Base64 encoded can cause errors or produce incorrect results.
    • Empty input string will decode to an empty string without error.
  • Error messages:

    • If the input is not valid Base64, the underlying Buffer conversion may throw an error. The node will report this as a failure with the error message.
  • Resolution:

    • Ensure the input data is correctly Base64 encoded.
    • Validate or sanitize input before passing to the node.

Links and References

Discussion