HMAC
Keyed SHA-2 signature of a string. Cloud-only, because it takes a shared secret.
HMAC signs the text on Value with the secret on Key and puts the result on Signature, rendered in the chosen encoding. It is the primitive behind webhook signature verification (compute the HMAC of the raw request body and compare it to the header the sender supplied) and behind signing an outbound API request. It is registered only in the cloud runtime, and that is the point: every real use holds a shared secret, and a browser node whose Key input can only be filled from a literal or a fetch is a secret in the page. It shares one implementation with JWT Sign and JWT Verify, so a token this backend mints and a signature this node checks cannot drift apart.
When to use it
Verifying a Stripe, GitHub or supplier webhook; signing a request some API requires signed; minting a tamper-evident download token. Wire Key from a Secret node.
At a glance
| Category | Cloud |
| Type name | noodl.cloud.hmac |
| Available in | cloud |
| SSR compatibility | — |
| Provided by | noodl-viewer-cloud |
| Behaviour spec | version 1 (under the hood) |
Inputs
Values
| Name | Type | Default | Description |
|---|---|---|---|
algorithm | Enum (SHA-256, SHA-384, SHA-512) | SHA-256 | Which SHA-2 digest the HMAC is built on. HMAC-SHA256 is what almost every webhook uses |
encoding | Enum (hex, base64, base64url) | hex | How the signature bytes are rendered as text. Match whatever the other side sends |
key | String | — | The shared secret. Wire this from a Secret node — never type a credential into the graph |
value | String | — | The message to sign, as UTF-8 bytes. For a webhook signature this is the raw request body |
Signals
| Name | Type | Default | Description |
|---|---|---|---|
sign | Signal |