JavaScript Brute Force Attack Example Timer

Key: Time in seconds:

This timer calculates how long it would take to brute force an encrypted text to find out what it says, by going through every possible character combination in a key. It will go through a key length of 20 characters and a possible 80 different characters.

It is cycling through every possible combination of letters, even though you may not see it on the display. The display only updates every second to prevent the browser from running out of memory.

According to calculations, to crack a key that is 5 characters in length the program would have to go through that 1 hour of time 80 different times, for the 80 different characters. So it would take about 80 hours to crack a 5 character key. But I have been know to be wrong Here is some estimates of time for average gamer computer to crack keys of different lengths:

Key LengthEst. Time
1 X 80 Characters0 Seconds
2 X 80 Characters0 Seconds
3 X 80 Characters36 Seconds
4 X 80 Characters3600 Seconds (1 hour)
5 X 80 Characters80 Hours (3.33 days)
6 X 80 Characters6400 Hours (266 days)
7 X 80 Characters21280 Days (58 years)
8 X 80 Characters4,640 Years
9 X 80 Characters371,200 Years