← All tool references

Developer Tools · not_available

HMAC Generator

Generate a keyed message authentication code with a selected SHA algorithm.

Open public tool

Overview

Category
Developer Tools
API mode
not_available
Processing
client-side
Privacy
no-data-stored

Public descriptor

The descriptor is available without an API key and supplies this tool’s metadata, schemas, modes, and examples.

GET /api/v1/tools/hmac-generator

View this descriptor as JSON

Execute availability

This tool is documented as a browser capability. Its execute route does not produce a server-side result; when execution is enabled, it responds with browser_interaction_required and points callers to the public tool page.

POST /api/v1/tools/hmac-generator/execute

Authentication is not issued during the preview. A bearer API key is planned for execution after launch.

Input schema

object object; additional properties are not accepted.

message · string · required
Enter the message used by this tool.
secret_key · string · required
Enter the secret key used by this tool.
algorithm · string · required
Enter the hash algorithm used by this tool. Accepted values: SHA-256, SHA-384, SHA-512.
key_encoding · string · required
Enter the key encoding used by this tool. Accepted values: utf8, hex, base64.
{
    "type": "object",
    "properties": {
        "message": {
            "type": "string",
            "description": "Enter the message used by this tool."
        },
        "secret_key": {
            "type": "string",
            "description": "Enter the secret key used by this tool."
        },
        "algorithm": {
            "type": "string",
            "description": "Enter the hash algorithm used by this tool.",
            "enum": [
                "SHA-256",
                "SHA-384",
                "SHA-512"
            ]
        },
        "key_encoding": {
            "type": "string",
            "description": "Enter the key encoding used by this tool.",
            "enum": [
                "utf8",
                "hex",
                "base64"
            ]
        }
    },
    "required": [
        "message",
        "secret_key",
        "algorithm",
        "key_encoding"
    ],
    "additionalProperties": false
}

Output schema

On a successful execution, schema values appear in data.result.values.

hex_digest · string
Hex HMAC produced by the tool.
base64_digest · string
Base64 HMAC produced by the tool.
message_bytes · number
Message bytes produced by the tool.
digest_bytes · number
Digest bytes produced by the tool.
{
    "type": "object",
    "properties": {
        "hex_digest": {
            "type": "string",
            "description": "Hex HMAC produced by the tool."
        },
        "base64_digest": {
            "type": "string",
            "description": "Base64 HMAC produced by the tool."
        },
        "message_bytes": {
            "type": "number",
            "description": "Message bytes produced by the tool."
        },
        "digest_bytes": {
            "type": "number",
            "description": "Digest bytes produced by the tool."
        }
    },
    "additionalProperties": false
}

HMAC Generator example

The request body follows the published input schema. The response below shows the success-envelope shape returned after execution is available.

curl -X POST "https://utilitypages.org/api/v1/tools/hmac-generator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "message": "UtilityPages signed message",
    "secret_key": "change-this-secret",
    "algorithm": "SHA-256",
    "key_encoding": "utf8"
}'
{
    "ok": true,
    "data": {
        "slug": "hmac-generator",
        "result": {
            "values": {
                "hex_digest": "f9ac85a5e9f69cb026c8287161c2817a335d1817a1069ca0c11de3e792881f48",
                "base64_digest": "+ayFpen2nLAmyChxYcKBejNdGBehBpygwR3j55KIH0g=",
                "message_bytes": 27,
                "digest_bytes": 32
            },
            "display": {
                "display": "f9ac85a5e9f69cb026c8287161c2817a335d1817a1069ca0c11de3e792881f48"
            },
            "warnings": [],
            "assumptions": [],
            "steps": []
        }
    },
    "meta": [],
    "request_id": "req_example_123"
}

Errors

api_not_launched · 503
Returned by the current launch gate for every execute request.
invalid_json · 400
Returned when an enabled execute request does not contain valid JSON.
validation_failed · 422
Returned when a request does not satisfy the input schema.
browser_interaction_required · 422
Returned for browser capability tools instead of inventing a server-side result.
tool_not_found · 404
Returned when a requested descriptor slug does not exist.
execution_failed · 503
Returned when an enabled server-side execution cannot complete.