ProtemKey

PIN generator

Random digits from your browser's cryptographic generator, with the PINs people pick most often left out. A PIN is short by design: it works because the device or bank stops after a few wrong tries.

Your PIN appears here (the generator needs JavaScript).

Why it is strong

19.9 bitsVery weak
  • 6 digits, each one of 1019.9 bits
  • minus 199 obvious PINs-0.0 bits

999,801 equally likely PINs.

Online, rate-limited208 days100 guesses per hour
Offline, slow hash50 seconds10,000 guesses per second
Offline, fast hashless than a second100 billion guesses per second

Average time to guess (half of all possibilities). The rates are illustrative assumptions, not measurements.

What “avoid obvious PINs” removes

For the length you choose, it skips: one digit repeated (000000), straight runs up or down (123456, 987654), a pair repeated (121212), years 1900–2029 for four-digit PINs, and every all-digit entry of that length on the bundled list of 10,001 common passwords. Removing them costs almost nothing: for six digits it removes 199 of 1,000,000 PINs, 0.0003 bits. The count shown is exact, and the generator redraws until it gets a PIN that is not excluded, so the rest stay equally likely.

Why bother, if the loss is that small? Because attackers don't guess in random order. They start with exactly these PINs, so a PIN from the excluded set falls in the first few guesses, which is all a lockout allows.

How long should a PIN be?

Random PINs. The chance assumes the PIN was chosen uniformly at random; chosen PINs (dates, patterns) are hit far sooner.
DigitsBitsPossible PINsHit in 10 guessesHit in 100 guesses
413.310,0000.1%1%
516.6100,0000.01%0.1%
619.91,000,0000.001%0.01%
723.310,000,0000.0001%0.001%
826.6100,000,0001e-05%0.0001%
929.91,000,000,0001e-06%1e-05%
1033.210,000,000,0001e-07%1e-06%
1136.5100,000,000,0001e-08%1e-07%
1239.91,000,000,000,0001e-09%1e-08%

A PIN is only as good as the lockout behind it. With ten tries before a lockout, a random 4-digit PIN gives an attacker a 0.1% chance; a random 6-digit PIN, 0.001%. Offline, with no lockout, no PIN length is enough: see how PINs work.