← All tool references

Security · not_available

Password Policy Generator

Password Policy with transparent inputs and reviewable results.

Open public tool

Overview

Category
Security
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/password-policy-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/password-policy-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.

minimum_length · number · required
Enter minimum length.
uppercase · string · required
Enter require uppercase. Accepted values: yes, no.
lowercase · string · required
Enter require lowercase. Accepted values: yes, no.
digits · string · required
Enter require digits. Accepted values: yes, no.
symbols · string · required
Enter require symbols. Accepted values: yes, no.
history · number · required
Enter password history.
max_age_days · number · required
Enter maximum age.
{
    "type": "object",
    "properties": {
        "minimum_length": {
            "type": "number",
            "description": "Enter minimum length."
        },
        "uppercase": {
            "type": "string",
            "description": "Enter require uppercase.",
            "enum": [
                "yes",
                "no"
            ]
        },
        "lowercase": {
            "type": "string",
            "description": "Enter require lowercase.",
            "enum": [
                "yes",
                "no"
            ]
        },
        "digits": {
            "type": "string",
            "description": "Enter require digits.",
            "enum": [
                "yes",
                "no"
            ]
        },
        "symbols": {
            "type": "string",
            "description": "Enter require symbols.",
            "enum": [
                "yes",
                "no"
            ]
        },
        "history": {
            "type": "number",
            "description": "Enter password history."
        },
        "max_age_days": {
            "type": "number",
            "description": "Enter maximum age."
        }
    },
    "required": [
        "minimum_length",
        "uppercase",
        "lowercase",
        "digits",
        "symbols",
        "history",
        "max_age_days"
    ],
    "additionalProperties": false
}

Output schema

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

policy · string
Generated policy produced by the tool.
requirements · array
Requirements produced by the tool.
usability_notes · array
Usability notes produced by the tool.
{
    "type": "object",
    "properties": {
        "policy": {
            "type": "string",
            "description": "Generated policy produced by the tool."
        },
        "requirements": {
            "type": "array",
            "description": "Requirements produced by the tool."
        },
        "usability_notes": {
            "type": "array",
            "description": "Usability notes produced by the tool."
        }
    },
    "additionalProperties": false
}

Password Policy 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/password-policy-generator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "minimum_length": 14,
    "uppercase": "yes",
    "lowercase": "yes",
    "digits": "yes",
    "symbols": "yes",
    "history": 10,
    "max_age_days": 0
}'
{
    "ok": true,
    "data": {
        "slug": "password-policy-generator",
        "result": {
            "values": {
                "policy": "Minimum length: 14\nCharacter requirements: uppercase, lowercase, digits, symbols\nPassword history: 10\nMaximum age: no forced periodic expiry days",
                "requirements": [
                    {
                        "requirement": "Minimum length",
                        "value": 14
                    },
                    {
                        "requirement": "Uppercase",
                        "value": "yes"
                    },
                    {
                        "requirement": "Lowercase",
                        "value": "yes"
                    },
                    {
                        "requirement": "Digits",
                        "value": "yes"
                    },
                    {
                        "requirement": "Symbols",
                        "value": "yes"
                    },
                    {
                        "requirement": "History",
                        "value": 10
                    },
                    {
                        "requirement": "Maximum age days",
                        "value": 0
                    }
                ],
                "usability_notes": [
                    {
                        "topic": "Length",
                        "note": "Prefer long passphrases."
                    },
                    {
                        "topic": "Expiry",
                        "note": "Avoid forced periodic changes without evidence of compromise."
                    },
                    {
                        "topic": "MFA",
                        "note": "Use phishing-resistant MFA where possible."
                    }
                ]
            },
            "display": {
                "display": "Minimum length: 14\nCharacter requirements: uppercase, lowercase, digits, symbols\nPassword history: 10\nMaximum age: no forced periodic expiry days"
            },
            "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.