Validate Password Policy — Check NIST & OWASP Compliance
Enter a password, pick a policy — NIST SP 800-63B, Corporate, PCI-DSS v4.0, or your own Custom rules — and this free password policy validator instantly runs every requirement and returns a clear Pass or Fail checklist. If your password falls short, hit Generate Compliant Password to get one that meets every rule automatically.
How the Password Validator Works — Real-Time Policy Checking in Your Browser
Type or paste any proposed password above and the tool evaluates it instantly against every rule in your selected policy configuration. The password entropy calculator breaks down the Shannon entropy formula step by step so the result is always explainable.
Length and Character Rules
The validator checks the minimum length, maximum length, required character types, and pattern restrictions simultaneously — so you see a complete picture of adherence in a single pass, from the minimum characters floor to the maximum characters ceiling.
Instant Validation Results
Validation results appear as each rule is evaluated — insufficient length, a missing uppercase character, absent digits or symbols, consecutive identical characters, or keyboard-row and alphabetical sequences. Password entropy is displayed in bits alongside a plain-language interpretation.
No Results Yet — The Empty State
When no input has been provided, the results panel shows a neutral placeholder to prevent false readings. Once you enter a password and select or configure a policy, results update automatically — no manual re-submit needed.
100% Private — All Analysis Runs in Your Browser
Your password never leaves your device. All analysis is performed locally using client-side JavaScript — there is no server call, no logging, and no transmission of sensitive data. This architecture makes the tool safe to use for real-world credential security audits, where sharing actual passwords with a third-party service would be an unacceptable information-protection risk. It also means the tool works offline once the page has loaded — ideal for air-gapped or restricted network environments.
Configure a Robust Password Validator — Policy Settings and Programmatic Rules
Beyond the built-in presets, a truly robust password validator lets you tune length, character types, pattern restrictions, and advanced options to match your own requirements. The password pattern analyzer identifies the specific patterns attackers prioritise — dictionary words, sequences, and substitutions.
Password Length Requirements — Minimum and Maximum Length Thresholds
Password length is the single most impactful variable in password complexity. The tool lets you set a minimum password length and a maximum password length independently. PCI DSS version 4.0 requirements mandate a minimum of 12 characters; NIST SP 800-63B sets a minimum 8 characters floor while encouraging longer passphrases; HIPAA security requirements recommend 12 characters or more for healthcare data security contexts.
Required Character Types — Uppercase, Lowercase, Digits, and Symbols
The character set validator enforces specific character types within each password: lowercase characters required (a–z), uppercase characters required (A–Z), numbers required (0–9), and symbols required (!#$%). For short passwords, the minimum character types rule typically demands all four types. For longer passphrases, length can supply sufficient password entropy with only two types required — a concept formalised by the Gibson Research Corporation password haystacks concept.
In a .NET development context using the FluentValidation library, these checks are expressed through the AbstractValidator<string> pattern. Each rule uses a RuleFor call with a .Must() predicate and a .WithMessage() clause. The requirement for at least one uppercase character, for example:
// At least one uppercase character
RuleFor(password => password)
.Must(password => password.Any(char.IsUpper))
.WithMessage("Password must contain at least one uppercase character");Pattern Restrictions — Blocking Sequential and Repeated Characters
Pattern restrictions prevent passwords from relying on predictable structures that make dictionary attacks and brute force attacks trivially easy:
- No sequential characters — blocks alphabetical sequences (abc, xyz) and consecutive digits (123, 456).
- No repeated characters — blocks substrings where the same character repeats more than a specified number of times (e.g., "aaaa" or "1111"), case-sensitive or case-insensitive.
- No keyboard patterns — scans for sequential keyboard characters drawn from known keyboard row sequences (e.g., "qwerty", "asdfg", "12345").
- No dictionary words — checks the proposed password against a specified dictionary file, optionally testing the password in reverse order.
- No common passwords — blocks the 10,000 most-used passwords attackers frequently try first.
Advanced Policy Options — Breach Databases, Entropy, and Similarity Rules
Beyond character rules and pattern restrictions, a truly robust password validator addresses password reuse prevention and compromised credentials:
- Check against breach databases — connects to a Pwned Passwords–style service using k-anonymity hashing so the password never leaves your device in full.
- Minimum entropy bits — sets a numeric floor for password entropy; NIST recommends at least 30 bits as a minimum baseline.
- Similarity-based checker — ensures a new password isn't too similar to the current one using the Levenshtein distance algorithm.
- Unique characters validator — requires a minimum number of unique characters, optionally case-insensitive.
- Regular expression validator — lets you define a custom regex a password must or must not match.
Policy Configuration Reference Table
| Password Validators | Description |
|---|---|
| Length-Based Validator | Ensures the number of characters in the proposed password is within the acceptable range defined by minimum and maximum length settings. |
| Character Set Validator | Requires a sufficient number of characters from user-defined sets — lowercase, uppercase, digit, and symbol. |
| Commonly-Used Passwords Validator | Blocks the 10,000 most-used passwords via a commonly-used-passwords.txt word list. |
| Dictionary Validator | Checks the password against a specified dictionary file, including optional reverse-order testing. |
| Haystack Password Validator | Evaluates strength using the password haystacks concept — a combination of length and character types. |
| Pwned Passwords Checker | Checks credentials against a database of hundreds of millions of compromised passwords via a compatible API. |
| Regular Expression Validator | Accepts or rejects passwords based on whether they match or don't match a given regular expression. |
| Repeated Characters Validator | Rejects passwords where the same character repeats more than a specified number of times. |
| Similarity-Based Checker | Uses the Levenshtein distance algorithm to ensure a new password isn't too similar to the current one. |
| Unique Characters Validator | Requires at least a specified minimum number of unique characters, optionally case-insensitive. |
Programmatic Policy Configuration Examples
The AbstractValidator class from the FluentValidation library provides a clean, fluent interface for expressing password policy constants in C#. This pattern enforces a comprehensive set of rules including the no-sensitive-data rule, no phone-number-sequence rule, and the core password-cannot-be-empty constraint — complementing any server-side checks:
public class PasswordValidator : AbstractValidator<string>
{
private readonly string _phoneNumber;
private readonly string? _idNumber;
private readonly DateTime? _dob;
public PasswordValidator(string phoneNumber, string? idNumber, DateTime? dob)
{
_phoneNumber = phoneNumber ?? string.Empty;
_idNumber = idNumber;
_dob = dob;
RuleFor(password => password)
.NotEmpty()
.WithMessage("Password cannot be empty");
RuleFor(password => password)
.Must(ValidateLength)
.WithMessage(
$"Password must be at least {PasswordPolicyConstants.MinimumPasswordLength} characters long");
RuleFor(password => password)
.Must(password => password.Any(char.IsUpper))
.WithMessage("Password must contain at least one uppercase character");
RuleFor(password => password)
.Must(password => !ContainsIdenticalCharacters(
password, PasswordPolicyConstants.MaxConsecutiveIdenticalCharacters))
.WithMessage("Password cannot contain consecutive identical characters");
RuleFor(password => password)
.Must(password => !ContainsAlphabeticalSequence(
password, PasswordPolicyConstants.MaxAlphabeticalSequenceLength))
.WithMessage("Password cannot contain alphabetical sequences");
}
}For PingDirectory enterprise environments, the backend SDK enables you to create and save your own password policies with the constraints necessary for your environment, going beyond the built-in types. For Apple platforms, the descriptor for UITextInputPasswordRules generates a string you pass to the iOS UI framework's password rules input attribute, enabling password autofill to generate passwords that comply with your policy. The equivalent HTML output provides the attributes for <input type="password">, supporting web verification and form validation on any platform.
Supported Compliance Frameworks — Password Validators for Regulatory Requirements
Preset policies map directly to the regulatory standards security and compliance teams are measured against.
NIST SP 800-63B
Federal security guidelines for digital identity verification, widely adopted beyond federal contexts. Requires a minimum 8-character floor, disables mandatory composition rules, and enables mandatory breach-database checking. A minimum entropy of 30 bits is also recommended.
PCI DSS 4.0
Payment Card Industry Data Security Standard v4.0 governs payment data protection. Enforces a minimum 12-character length (updated from the previous 7-character minimum), alphanumeric required types, pattern restrictions, rotation at defined intervals, and no reuse of previous credentials.
HIPAA
Sets security requirements for protected health information (PHI). Doesn't mandate a specific numeric minimum, but healthcare data security guidance consistently recommends 12 characters as a practical floor, with all character types required and comprehensive pattern checking.
PingDirectory
The enterprise directory server from Ping Identity supports a full suite of configurable credential validators through its LDAP directory policy framework — length-based, character set, commonly-used passwords, dictionary, repeated characters, regex, similarity, and unique characters validators.
| Framework | Minimum Length | Character Types | Pattern Restrictions | Breach Check |
|---|---|---|---|---|
| NIST SP 800-63B | 8 characters | No composition rules required | Block common passwords | Mandatory |
| PCI DSS 4.0 | 12 characters | Alphanumeric required | Pattern restrictions enforced | Recommended |
| HIPAA | 8 minimum (12+ recommended) | All character types required | Comprehensive pattern checking | Recommended |
| PingDirectory | Configurable | Configurable via character set validator | Full suite: dictionary, repeated, keyboard, regex | Via Pwned Passwords validator |
Disclaimer: This tool provides guidance based on published regulatory standards. Always consult official documentation and your organisation's security team for authoritative requirements before relying on these results for audit purposes or regulatory submissions.
Who This Tool Is Built For — Custom Password Validators Across Every Team
From security audits to everyday policy checks, the validator adapts to how different teams work.
Security Professionals
Quickly probe whether any credential — yours, a test account's, or a sample from a system export — satisfies every rule in a given policy framework. Select a preset policy (NIST, PCI DSS, HIPAA) or build custom rules to mirror exactly what your target environment enforces, then run candidates through the validator to surface non-adherence.
Audit Teams
Preparing for a PCI DSS, HIPAA, or NIST assessment, the tool's pre-configured compliance policies let you validate passwords against regulatory requirements systematically — running through a representative sample of credentials to identify gaps before an auditor does.
IT Administrators
Calibrate policy configuration so rules are strict enough to satisfy IT security and enterprise requirements but practical enough that users aren't constantly locked out. Test the impact of tightening the minimum length or enabling keyboard-pattern restrictions before rolling a change out to production.
Bulk Password Testing
Validate up to 50 passwords simultaneously, making it practical to run a batch audit of exported credential lists or generated passwords. Each entry is verified against the active policy and tagged with pass/fail per rule and overall status, so you can filter to show only failures for fast remediation.
Worked Examples — Applying the Password Policy Validator to Real Scenarios
Three real-world scenarios showing how different teams put the validator to work.
Security Engineer: Custom Policy + Bulk Validation
A security engineer at a financial services firm configures a custom policy (min. 12 chars, all character types, sequential/keyboard/repeated-character restrictions, breach checking, 35-bit minimum entropy), then bulk-tests 30 exported passwords. The validator returns 18 pass, 12 fail — 7 for length, 3 for consecutive identical characters, 2 flagged as previously breached — exported as CSV for the audit trail.
Compliance Officer: Mapping Against PCI DSS 4.0
A compliance officer at a retail organisation selects the PCI DSS 4.0 preset and compares it to their internal policy, finding a gap: their policy only enforces an 8-character minimum against PCI DSS 4.0's 12-character requirement, and lacks pattern restrictions. Testing a sample of 20 passwords surfaces 7 length failures and 4 keyboard-pattern violations for the gap-analysis report.
IT Admin: Hardening PingDirectory
An IT administrator hardening a PingDirectory LDAP deployment enables the commonly-used-passwords validator, a similarity-based checker with a Levenshtein distance threshold of 4, and confirms the current-password requirement is enabled before deploying:
dn: cn=Secure Password Policy,cn=Password Policies,cn=config
objectClass: ds-cfg-password-policy
ds-cfg-password-validator: cn=Commonly Used Passwords,...
ds-cfg-min-password-length: 12
ds-cfg-max-password-length: 128Frequently Asked Questions
- What is a Password Policy Validator?
- A Password Policy Validator checks whether a given password meets a defined set of security rules — such as minimum length, character variety, entropy thresholds, and pattern restrictions. It helps developers, security teams, and end users confirm that passwords comply with standards like NIST SP 800-63B, PCI DSS, or HIPAA before deployment or account creation.
- Is my password stored or sent anywhere?
- No. All validation logic runs entirely in your browser using client-side JavaScript. Your password is never transmitted to any server, logged, or stored — it stays completely on your device.
- What is the NIST SP 800-63B password standard?
- NIST SP 800-63B is a US federal guideline for digital identity authentication. It recommends passwords be at least 8 characters long (ideally 15+), checked against known breached password lists, and not forced to include arbitrary complexity rules like mandatory symbols. It also recommends a minimum entropy of around 30 bits.
- What does password entropy mean?
- Entropy measures how unpredictable or random a password is, expressed in bits. A higher entropy means the password is harder to guess or crack. It is calculated based on the size of the character pool used and the length of the password. NIST recommends at least 30 bits of entropy for most use cases.
- What are sequential and keyboard pattern restrictions?
- Sequential character restrictions block passwords that contain strings like "abc", "123", or "xyz" — characters in alphabetical or numerical order. Keyboard pattern restrictions block common key sequences like "qwerty", "asdf", or "zxcv" that are easy for attackers to guess even if they look complex.
- What compliance standards does this tool support?
- The validator includes preset policies for NIST SP 800-63B, PCI DSS, and HIPAA. You can also select "Custom Policy" and manually configure every rule — minimum/maximum length, required character types, entropy, and pattern restrictions — to match your own organization's security requirements.
- How is the Strength Score calculated?
- The strength score (0–100) combines multiple factors: password length, character variety (lowercase, uppercase, numbers, symbols), estimated entropy, and the absence of weak patterns. Each factor contributes points toward the total. Passing all policy rules gives the maximum possible score for a given configuration.
- Can I use this to build a password policy for my application?
- Yes. Use the Custom Policy mode to experiment with different combinations of rules and see in real time how they affect validation. Once you have settings that match your security requirements, you can implement the same rules in your application's backend or front-end validation logic.