SecuredKit

Password Policy Builder

Design a password policy visually — length and character-class requirements — then export it as a JSON schema, a single validation regex, or a plain-English rules list. Test any password against the policy live. Runs entirely in your browser; nothing is transmitted.

Policy Rules

Minimum count
Minimum count
Minimum count

Test a Password

Enter a password above to see which rules it meets.

Export Policy

{
  "minLength": 8,
  "requireUppercase": true,
  "minUppercase": 1,
  "requireLowercase": true,
  "minLowercase": 1,
  "requireNumber": true,
  "minNumber": 1,
  "requireSymbol": false
}

🔒 Zero-Knowledge — your policy and any test password stay in this browser. Nothing is transmitted.

Why Use This Password Policy Builder?

Composition rules — minimum length, required character classes, minimum counts per class — are ultimately just constraints on entropy, H = L × log₂(R), where L is length and R is the size of the character pool. Hand-writing a regex that enforces several classes with per-class minimums via lookahead assertions is error-prone and easy to get subtly wrong (off-by-one counts, unescaped symbol ranges, forgotten anchors). This builder lets you set the rules with toggles and numeric inputs, then generates a correct JSON schema, a tested lookahead regex, and a plain-English rules list from the same source of truth — so your frontend copy, backend validator, and documentation never drift out of sync. Everything runs client-side; no policy or test password is ever sent to a server.

  • Core composition rules: minimum and optional maximum length, and independently toggleable requirements for uppercase, lowercase, numeric, and symbol characters — each with its own minimum count.

  • Three synchronized export formats: a JSON schema for API/config validation, a single lookahead regex for `pattern` attributes and backend validators, and a plain-English rules list for user-facing copy.

  • Live policy tester: type a candidate password and see a real-time pass/fail checklist against every active rule, plus an overall verdict — the same logic that produced the regex.

  • Editable symbol charset: the default symbol set covers the common ASCII punctuation range, but you can restrict or extend it to match a specific backend's accepted characters.

  • Zero-Knowledge by design: the policy you build and any password you type to test it stay in your browser's volatile memory — open the Network tab and confirm zero requests fire as you work.

How to Use the Policy Builder

  1. 1

    Set a minimum length, and optionally a maximum, using the length fields.

  2. 2

    Toggle the character classes you want to require — uppercase, lowercase, numbers, symbols — and set a minimum count for each.

  3. 3

    Type a sample password into the tester to confirm the live checklist matches what you expect.

  4. 4

    Switch between the JSON, Regex, and Rules Text tabs to copy the export format your form, API, or documentation needs.

Frequently Asked Questions

Also try our Password Strength Checker to check a password's entropy and crack-time before deciding whether your policy is strict enough.

Built your policy? Generate a password that satisfies it, or check an existing one's strength.