← All tool references

Generators · not_available

Secret Key Generator

Secret Key with transparent inputs and reviewable results.

Open public tool

Overview

Category
Generators
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/secret-key-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/secret-key-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.

bytes · number · required
Enter random bytes.
encoding · string · required
Enter encoding. Accepted values: hex, base64url, base64.
quantity · number · required
Enter keys.
{
    "type": "object",
    "properties": {
        "bytes": {
            "type": "number",
            "description": "Enter random bytes."
        },
        "encoding": {
            "type": "string",
            "description": "Enter encoding.",
            "enum": [
                "hex",
                "base64url",
                "base64"
            ]
        },
        "quantity": {
            "type": "number",
            "description": "Enter keys."
        }
    },
    "required": [
        "bytes",
        "encoding",
        "quantity"
    ],
    "additionalProperties": false
}

Output schema

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

keys · array
Generated keys produced by the tool.
entropy_bits · number
Entropy per key produced by the tool.
encoding · string
Encoding produced by the tool.
{
    "type": "object",
    "properties": {
        "keys": {
            "type": "array",
            "description": "Generated keys produced by the tool."
        },
        "entropy_bits": {
            "type": "number",
            "description": "Entropy per key produced by the tool."
        },
        "encoding": {
            "type": "string",
            "description": "Encoding produced by the tool."
        }
    },
    "additionalProperties": false
}

Secret Key Generator worked 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/secret-key-generator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "bytes": 32,
    "encoding": "hex",
    "quantity": 4
}'
{
    "ok": true,
    "data": {
        "slug": "secret-key-generator",
        "result": {
            "values": {
                "keys": [
                    {
                        "number": 1,
                        "key": "cfbe0fbc6ba466a825889cbc7dd9d49851ecdafdeef2c0b05cbab68c34071468"
                    },
                    {
                        "number": 2,
                        "key": "7af9fea558e8c5e29a18a832a092fe16d13e8150de1f0f658891dc845c3d8aad"
                    },
                    {
                        "number": 3,
                        "key": "a430224525b88c35119ff055b9a521923b5da22017c4bd7521962bc057c0f566"
                    },
                    {
                        "number": 4,
                        "key": "48b0d567a6a65101162da62a8f80e4abda325b3361dc62a478b3cbcd99460e10"
                    }
                ],
                "entropy_bits": 256,
                "encoding": "hex"
            },
            "display": {
                "display": "[{\"number\":1,\"key\":\"cfbe0fbc6ba466a825889cbc7dd9d49851ecdafdeef2c0b05cbab68c34071468\"},{\"number\":2,\"key\":\"7af9fea558e8c5e29a18a832a092fe16d13e8150de1f0f658891dc845c3d8aad\"},{\"number\":3,\"key\":\"a430224525b88c35119ff055b9a521923b5da22017c4bd7521962bc057c0f566\"},{\"number\":4,\"key\":\"48b0d567a6a65101162da62a8f80e4abda325b3361dc62a478b3cbcd99460e10\"}]"
            },
            "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.