rpissardo
Posts: 1
Joined: Fri Feb 02, 2018 12:09 pm
Occupation: Teacher

Python Password Guesser

Postby rpissardo » Fri Feb 02, 2018 12:11 pm

Hi!

I need help here. I did the modifications for the methods but it takes too long to run the code. What should I do?

bfinio
Expert
Posts: 357
Joined: Mon Aug 12, 2013 2:41 pm
Occupation: Science Buddies Staff

Re: Python Password Guesser

Postby bfinio » Thu Feb 08, 2018 3:34 pm

Hi rpissardo,

What is your definition of "too long"? Have you tried letting the code run overnight or over the weekend? If you do some of the math described at the beginning of the project's procedure (not just running the Python code), you should be able to estimate how long it will take for a brute-force attack on a password of a certain length. You can make your calculations more accurate by using roughly the number of guesses per second your program displays for shorter passwords. You may see that it is not practical to run the code for passwords beyond a certain length (which of course, is part of the point of using long passwords).

Hope that helps.

Ben


Return to “Grades 6-8: Math and Computer Science”