Python Password Guesser

Ask questions about projects relating to: computer science or pure mathematics (such as probability, statistics, geometry, etc...).

Moderators: AmyCowen, kgudger, bfinio, MadelineB, Moderators

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

Python Password Guesser

Post by rpissardo »

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: 740
Joined: Mon Aug 12, 2013 2:41 pm
Occupation: Science Buddies Staff
Project Question: Expert
Project Due Date: n/a
Project Status: Not applicable

Re: Python Password Guesser

Post by bfinio »

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
Locked

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