Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- common_passwords = """
- 123456
- password
- 123456789
- 12345678
- 12345
- 111111
- 1234567
- sunshine
- qwerty
- iloveyou
- princess
- admin
- welcome
- 666666
- abc123
- football
- 123123
- monkey
- 654321
- !@#$%^&*
- charlie
- aa123456
- donald
- password1
- qwerty123
- """
- # common_passwords_file.seek(0) - will be deleted in the future
- # common_passwords = common_passwords_file.readlines() - will be deleted in the future
- password = input("Please Enter your password")
- i = 0
- common_passwords = common_passwords.split("\n")
- print(type(common_passwords)) # to make sure i am getting a list
- while i <= len(common_passwords):
- if password in common_passwords[i]:
- print("you should really think about changing your password")
- # print(f"it's on the {i}")
- i += 1
- else:
- print("It's a good password")
- break
Advertisement
Add Comment
Please, Sign In to add comment