Plug Database icon

Plug Database

Run Plug Database commands over REST or Socket.

Tools → HMAC Sign

AI-generated

Summary

Compute an HMAC signature for a given text using the specified secret key and hashing algorithm, returning the signature as a hexadecimal string.

Inputs

  • Tool Category — Select category of tools to show (default is 'Documents').
  • Text (required) — The input text string to be signed with HMAC.
  • Secret (required) — The secret key used to generate the HMAC signature.
  • Algorithm (required) — The hash algorithm to use for HMAC generation (e.g., 'sha256').
  • Output JSON Property — The JSON property name under which the resulting HMAC signature will be stored (default is 'signature').

Output shape

a single JSON object per input item containing the HMAC signature string stored under the specified JSON property

The output JSON property name defaults to 'signature' but can be customized by the user. The signature is a hex-encoded string. The operation processes each input item separately.

Examples

Example 1: Generate an HMAC-SHA256 signature

Provide a text string, a secret key, and set algorithm to 'sha256'. The resulting signature will be output in the 'signature' JSON property.

Links

Discussion