WAREST icon

WAREST

Interact with the WARest WhatsApp REST API

Overview

This node operation computes a HMAC (Hash-based Message Authentication Code) for a given input string using a specified key and algorithm. It is useful for scenarios requiring data integrity verification and authentication, such as securing API requests, validating message authenticity, or generating cryptographic signatures.

Use Case Examples

  1. Generating a HMAC signature for an API request payload to ensure data integrity.
  2. Verifying the authenticity of a message by comparing its HMAC with a known key.

Properties

Name Meaning
Input The input string for which the HMAC will be computed.
Key The secret key used to compute the HMAC.
Algorithm The cryptographic hash algorithm to use for HMAC computation (default is sha256).
Output Encoding The encoding format of the HMAC output (hex or base64).

Output

JSON

  • hmac - The computed HMAC string based on the input and key.

Dependencies

  • Requires an API key credential for the WARest WhatsApp REST API to authenticate requests.

Troubleshooting

  • Ensure the 'Input' and 'Key' fields are not empty as they are required for HMAC computation.
  • Verify that the chosen algorithm is supported and correctly spelled (e.g., 'sha256').
  • If the output encoding is not as expected, check the 'Output Encoding' property to confirm it matches the desired format.

Links

Discussion