HMAC Create
Create an HMAC signature of a value using a secret.
Type
crypto.hmac.createFolder
basic/cryptoChannels
Any
Pipe
Value
Scope
Any
HMAC Create signs Value with Secret and writes the signature to the data pipe. Use HMAC Verify to check a signature from a webhook header.
Configure
| Setting | Description |
|---|---|
| Value | Body or text to sign (required) |
| Secret | Shared secret. Prefer a workspace env key (required) |
| Algorithm | SHA-256 (default), SHA-384, SHA-512, or SHA-1 |
| Encoding | Hex (default), Base64, or Base64 URL |
Handles
| Handle | Role |
|---|---|
| In (target) | Incoming connection |
| Out (source) | Continues after signing |
| Error | Catchable failures: missing secret (MISSING_VALUE) |
Connect Branch errors to Error to split those codes.
Pipe schema
The next block reads this on the data pipe (pipe.value). The value is text (the signature).
Use case
- Sign an outbound HTTP body before an API call.
- Produce the same digest a partner expects in
X-Signature.