Hacker News new | ask | show | jobs
by new_guy 1568 days ago
This seems remarkably unintuitive, but the math checks out.

(26+10)⁶ = 2,176,782,336

1,450 minutes a day

2,176,782,336 / (1,450 * 60) = ~25,000 years

1 comments

You went from min per day multiplied by constant per min and ended up with years somehow.
My reasoning:

Number of 6-character alphanumeric passwords: (2*26+10)**6 == 56800235584

Number of seconds in a year: 60*60*24*365 == 31536000

Number of years to enumerate all 6-character alphanumeric passwords at one password a second:

  >>> ((2*26+10)**6)/(60*60*24*365)
  1801.1236549974633
(this assumes that alphanumeric is [a-zA-Z0-9], which some might disagree with)