Skip to content

Conversation

@isaac-vicentini
Copy link
Contributor

HMAC Signature Generator (Flow Action)

This Flow Action computes a keyed hash (HMAC) of the input payload.
It supports common algorithms and handles raw or Base64-encoded secrets.

Inputs

  • payload (String) — Text to sign (e.g., request body or signedPayload).
  • secret (String) — Shared secret used to compute the HMAC.
  • algorithm (Choice) — HmacSHA256 (default), HmacSHA1, HmacSHA512.
  • secret_encoding (Choice) — raw (default) or base64.

    The underlying API expects the secret in Base64. If you pass a raw secret, this action converts it for you.

Output

  • signature (String, Base64) — The computed HMAC in Base64.

Example

  1. Default (HmacSHA256, secret as raw)
    payload: {"id":123,"ok":true}
    secret: mysecret
    algorithm: HmacSHA256
    secret_encoding: raw

Result → Base64 signature (compare with your provider/tool).

It supports common algorithms and handles raw or Base64-encoded secrets.
@github-actions
Copy link

Valid PR for ActionPack

Thank you for your contribution. This PR complies with the CONTRIBUTING.md.
A maintainer will review this shortly. In the meantime, Happy Hacking!

@SapphicFire SapphicFire self-assigned this Oct 31, 2025
Copy link
Contributor

@SapphicFire SapphicFire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@SapphicFire SapphicFire merged commit ddc5472 into ServiceNowDevProgram:main Oct 31, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants