FlowmageDocs

HMAC

Signs text with a secret both sides know, so the other side can check it.

Settings

SettingWhat it is
TextSigned as UTF-8 bytes — the exact text the peer signs, character for character.
Algorithm"sha256" or "sha512" or "md5"
Output"hex" or "base64"
SecretRequiredNever printed, never logged — the signature is all that leaves.
Technical details
KeyValue
textany JSONits `{{ }}` must give a string
algorithm"sha256" or "sha512" or "md5", by default "sha256"
format"hex" or "base64", by default "hex"
auth.secrettextwrite `{{ secret.NAME }}`, never the value

Output

FieldType
signaturestring
Sample output, and the expression for each field
  • signature"3c62193e98aa79acc9fa84f6798bda24c6f634eef2e40f131698b85441a6a292"

Errors

When a step of this node stops a run, the run page shows a code. Look it up:

Example step

The step as a flow file holds it. Replace each value in <…>.

{
  "config": {
    "algorithm": "sha256",
    "auth": {
      "secret": "<secret>"
    },
    "format": "hex",
    "text": "<text>"
  },
  "label": "HMAC",
  "type": "crypto.hmac",
  "version": 1
}