Beginner project · about 30 minutes
Password Strength Checker 🔐
Score passwords like a real sign-up form does, then generate strong ones.
Security is a huge Python employer. You will write a scorer that checks length, character classes and common passwords, then a generator that produces strong ones.
What you will build
- Check the rules Length 12 or more, has upper, lower, digit and symbol. Use any() with string methods.
- Score it One point per rule met. Map 0 to 2 as Weak, 3 to 4 as Medium, 5 as Strong.
- Block common passwords If the password is in a set like {"password", "123456", "qwerty"}, force Weak.
- Generate Use random.choices over letters, digits and punctuation from the string module.
Skills: strings, functions, sets, random