sha256

This block is part of the value group and was last modified in core v15.0.0.

sha256 v15.0.0

HMAC-SHA256 of the value keyed with the secret, as lowercase hex : e.g. to verify a webhook's X-Mssgs-Signature: sha256=<hex> header against the raw request body.

In pins 2
  • secret required
    value
  • value required
    value
Out pins 1
  • signature
    value

Outputs the HMAC-SHA256 of value keyed with secret, as lowercase hex on the signature pin. Unwired or empty pins are treated as "" -- the block still emits a signature rather than erroring.

A typical wiring for sha256: get raw body feeds the secret pin; the signature out pin feeds convert to uppercase.

Studio canvas example for the sha256 block: typical wiring for sha256.

Commonly used with

In production blueprints, this block is most often wired together with:

  • get raw body: feeds into this block. Returns the request body exactly as received on the wire, as a string — the bytes an HMAC signature covers. Use this (never a re-serialized object) when verifying signature headers like X-Mssgs-Signature.
  • dynamic value: this block feeds into it. Returns the provided value with support for dynamic inpins using {name:type} placeholders — the pin's name first, then its type, e.g. {guid:value}.

Version history

Introduced in v15.0.0.


Back to value Return to the main group to view all sub-groups Back to hmac Return to the group to view all blocks within this group