Ask coding questions

← Back to all posts
Brute forcer password cracker
Bunnytoes

I am making a brute force password cracker, but I need to make it so it can find the password length without any help

Answered by SixBeeps [earned 5 cycles]
View Answer
Voters
Bunnytoes
Comments
hotnewtop
SixBeeps

I got a password that passes Timer ran 1 yet is still cracked. I think it's just because brute forcing takes a long time (it's an O(c^l) operation where c is the character set and l is the length of the password).

Bunnytoes

@SixBeeps so it works? but it says it took 0 seconds, I need it to say the elapsed time

Bunnytoes

@SixBeeps I updated and fixed it

SixBeeps

In a 'realistic' brute-force situation, you won't know the length. Therefore, you must test all of the combinations at incrementing lengths to make sure you've covered all possible passwords.

Bunnytoes

how can I do that? @SixBeeps

Bunnytoes

please look at the new question