Skip to main content

display_strength

Function display_strength 

Source
pub fn display_strength(
    term: &mut Term,
    validation: &PasswordValidation,
) -> Result<()>
Expand description

Display password strength in the terminal with colored progress bar.

Clears the current line and writes:

Strength: [████] Strong
  • Add special characters (!@#$%^&*)