πŸ”’

Password strength checker

Score a password from terrible to legendary based on what's in it.

MakerΒ· ages 12–1425 minstring methodsany()conditionalslists
password.py
…

First load pulls ~10Β MB of Python. Only happens once β€” the browser caches it after.

What should the output look like?

You should see the password broken down by feature, then a score with a label.

πŸ“–

How this works

Scores a password out of 6 based on length and character types. any() returns True if at least one character matches. The label uses a list β€” the higher the score, the fancier the label.

Your turn β€” try these

  • 1Add a check for repeated characters (like 'aaaa') that penalises the score.
  • 2Warn if the password matches a top-10 common list ("password", "qwerty", etc.).
  • 3Award bonus points for length above 16 characters.