Brute Force Password Cracker
CyanCoding (1415)

https://repl.it/@CyanCoding/Brute-Force-Password-Cracker
I built the Brute Force Password Cracker as a fun program to test out passwords, and to test my knowledge of Python 3 and its libraries.

You are viewing a single comment. View All
jp3 (2)

Some suggestions:

  1. Use the built-in character sets in the module 'string'.
    Example: 'any(c in string.ascii_lowercase for c in password)' is true when there is a lowercase letter in password. You can use a similar technique with symbols even though they don't have their own string in the module, by first checking for everything else.
    reference: https://docs.python.org/3/library/string.html

  2. First check the more common combinations. Only numbers, then only lowercase letters, then both, and so on. Within the user's wishes, of course.
    https://en.wikipedia.org/wiki/List_of_the_most_common_passwords

  3. Long strings are often better assigned to a variable outside the main logic of the program and then inserted when needed. Appropriate naming of the variables is important.

Nice project. I especially like the different responses to questions.