0-CodeKit icon

0-CodeKit

A toolbox of no-code utilities

Overview

The Crypto - Hash a Text operation in the 0-CodeKit n8n node allows you to generate a cryptographic hash of a given message using a variety of hashing algorithms. This is useful for securely storing passwords, verifying data integrity, or generating unique identifiers. For example, you might use this node to hash user passwords before saving them to a database, or to create checksums for files and messages.

Properties

Name Meaning
Message The text string you want to hash. This is the input data that will be processed by the selected hash algorithm.
Secret Key A secret key used for HMAC (Hash-based Message Authentication Code) algorithms. Required for HMAC options; can be left blank for standard hash types.
Hash Type The hashing algorithm to use. Options: MD5, SHA1, SHA3, SHA224, SHA256, SHA384, SHA512, RIPEMD160, HmacMD5, HmacSHA1, HmacSHA224, HmacSHA256, HmacSHA384, HmacSHA512, HmacRIPEMD160, HmacSHA3.

Output

The output is a JSON object containing the result of the hash operation. The structure typically looks like:

{
  "hash": "<hashed_value>"
}
  • hash: The resulting hash string generated from the input message and selected algorithm.

Dependencies

  • External Service: Requires access to the CodeKit API.
  • Credentials: You must configure the codeKitApi credential in your n8n instance for the node to function.

Troubleshooting

  • Missing Credentials:
    Error: No credentials found for codeKitApi
    Resolution: Ensure you have set up the required credentials in n8n.

  • Invalid Hash Type:
    Error: Invalid hashType provided
    Resolution: Make sure you select one of the supported hash types from the dropdown.

  • Empty Message or Secret Key:
    Error: Message or Secret Key is required
    Resolution: Provide a value for both fields as required by the selected hash type.

  • API Errors:
    Error: Request failed with status code ...
    Resolution: Check your network connection, API credentials, and ensure the CodeKit service is available.

Links and References

Discussion