You know these Create a new password forms? They do a lot of checks to make sure you make a password that is hard to guess and you will surely forget.
In this Bite you will write a validator for such a form field.
Complete the validate_password
function below. It takes a password str
and validates that it:
PUNCTUATION_CHARS
)used_passwords
)If the password matches all criteria the function should store the password in used_passwords
and return True
.
Have fun, keep calm and code in Python!