Expand description
Password strength validation and visual feedback.
Provides real-time password strength validation with consistent behavior between CLI (Rust) and browser (JavaScript) implementations.
§Strength Levels
| Level | Entropy | Requirements |
|---|---|---|
| Weak | <20 bits | Missing multiple requirements |
| Fair | 20-40 bits | Missing some requirements |
| Good | 40-60 bits | Most requirements met |
| Strong | ≥60 bits | All requirements met, 12+ chars |
Structs§
- Password
Checks - Individual password requirement checks.
- Password
Validation - Result of password validation.
Enums§
- Password
Strength - Password strength levels with associated colors.
Functions§
- display_
strength - Display password strength in the terminal with colored progress bar.
- format_
strength_ inline - Format password strength as a simple inline indicator.
- validate_
password - Validate a password and return strength assessment with suggestions.