crypto_password_strength
Analyze a password's strength by calculating a 0-100 score, Shannon entropy, estimated offline crack time, and actionable feedback. Optionally penalize inclusion of username or context words.
Instructions
Password Strength Checker. Score the strength of one password — returns a 0-100 score, a strength label, Shannon entropy in bits, an estimated offline crack time, and actionable feedback plus the character-class breakdown. Use it for a single password; use crypto_password_strength_bulk to score many at once. Optionally pass a username and context words so reuse of those terms is penalised. Analysis is local, deterministic compute on the input you provide: read-only, non-destructive, never stored, and the password is never logged. Rate-limited (30 requests/min anonymous).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| password | Yes | The password to analyse. Required; an empty string scores 0. | |
| username | No | Optional account username; if the password contains it (case-insensitive) the score is reduced. | |
| commonWords | No | Optional context words (site name, real name); each word longer than 3 chars found in the password lowers the score. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| score | No | Strength score, 0 (weak) to 100 (strong). | |
| strength | No | Label: Very Weak, Weak, Fair, Good, or Strong. | |
| strengthClass | No | CSS colour class for the label. | |
| length | No | Password length in bytes. | |
| entropy | No | Shannon entropy in bits, rounded to 2 dp. | |
| crackTime | No | Estimated offline crack time. | |
| feedback | No | Warnings and improvement suggestions. | |
| positives | No | Strengths detected in the password. | |
| details | No | Character-class breakdown. |