Last active
May 19, 2021 10:59
-
-
Save kingabzpro/7a0f9b59aac03b386c5ed42e53aa5df5 to your computer and use it in GitHub Desktop.
Password Ranking
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def strength(data): | |
power=0 | |
if not data["too_short"]: | |
power+=1 | |
if not data["common_password"]: | |
power+=1 | |
if not data["too_many_repeats"]: | |
power+=1 | |
return power |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment