WAREST icon

WAREST

Interact with the WARest WhatsApp REST API

Overview

This node operation computes a cryptographic hash of a given input string using a specified algorithm and output encoding. It is useful for generating secure hash values for data integrity verification, password storage, or digital signatures. For example, you can hash a password before storing it or verify file integrity by comparing hash values.

Use Case Examples

  1. Hashing a password string using SHA-256 with hex output.
  2. Generating a base64-encoded SHA-1 hash of a message for data integrity checks.

Properties

Name Meaning
Input The input string to be hashed, required for the operation.
Algorithm The cryptographic hash algorithm to use, e.g., sha256, sha1, etc.
Output Encoding The encoding format of the hash output, such as hex or base64.

Output

JSON

  • json - The resulting hash value of the input string according to the specified algorithm and encoding.

Dependencies

  • Requires an API key credential for the WARest WhatsApp REST API to perform the operation.

Troubleshooting

  • Ensure the input string is not empty as it is required for hashing.
  • Verify the algorithm name is supported and correctly spelled; unsupported algorithms will cause errors.
  • Check that the output encoding is either 'hex' or 'base64' as other values are not supported.
  • If the API request fails, confirm that the API key credential is valid and the base URL is correctly configured.

Links

Discussion