You will count possible passwords, work out how long trying them takes, and run a real brute-force attack on a -digit PIN.
Your tasks.
combinations, return how many passwords of length characters can be made from size characters.seconds_to_try, return the time to try them all at rate guesses per second.crack, try every PIN from "000" to "999" in order, using is_right(pin). Return the PIN and the number of tries it took.Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…