Password entropy, honestly computed, and what NIST 800-63B says
Entropy of a password generator, guess times at online rates and at hash rates we measured on one CPU, and why a chosen password cannot be scored.
Most "password strength meters" answer a question that cannot be answered: how random is this string a person just typed. This article does the arithmetic that can be done, entropy of a generation method and the time it buys at a stated guess rate, ships the calculator, measures the offline guess rates on a real CPU instead of assuming them, and then reads NIST SP 800-63B, which reached the same conclusion and rewrote the rules around it.
Entropy belongs to the process, not the string
Entropy in bits is log2 of the number of equally likely outcomes. A password picked uniformly at random from a set of N possibilities has log2(N) bits, and an attacker who knows the set but not the pick needs, on average, half the set to find it.
For a string of L characters each drawn uniformly from an alphabet of size A, that is L * log2(A). For a passphrase of W words each drawn uniformly from a list of D words, it is W * log2(D). Those are the only two formulas in the calculator, because they are the only two that are honest.
The string Tr0ub4dor&3 has no entropy on its own. If it was produced by a person following the habit "take a word, swap some letters for lookalikes, add a symbol and a digit", its entropy is log2 of how many strings that habit produces, which is far smaller than the 95-character arithmetic suggests. A meter that sees only the string cannot know which process produced it. This is why NIST's guidance, in Section 3.1.1.2 of SP 800-63B, "SHALL NOT impose other composition rules (e.g., requiring mixtures of different character types)". Composition rules shape human habits into a smaller, more predictable set; they do not add randomness.
The calculator and its table
password-entropy-calculator-nist-800-63b.py prints expected guess time for eight generation methods at four rates. The rates bracket the two situations that matter: guessing through your login form, where you control the rate, and guessing against a stolen hash table, where the attacker does. The two online rates are policy numbers, set by a rate limit. The two offline rates are not assumptions: they are hash rates we measured on one CPU thread, with the benchmark described in the next section, for the fastest hash a stolen table is likely to hold (unsalted MD5) and for Argon2id at the setting OWASP recommends.
python code/password-entropy-calculator-nist-800-63b.py --measured datasets/password-hash-bench.csv
python code/password-entropy-calculator-nist-800-63b.py --length 20 --alphabet lower
python code/password-entropy-calculator-nist-800-63b.py --words 5 --wordlist-size 7776
The table below is the script's output with --measured, rounded. "Bits" is the entropy of the method; each time column is the expected time to reach half the keyspace at that rate.
| Generation method | Bits | 10/s (throttled online) | 1,000/s (unthrottled online) | MD5, one CPU thread (6.53 million/s, measured) | Argon2id 19 MiB, one CPU thread (45.92/s, measured) |
|---|---|---|---|---|---|
| 6 random digits (a PIN) | 19.9 | 13.9 h | 8.3 min | 0.1 s | 3.0 h |
| 8 random alphanumeric | 47.6 | 346,000 y | 3,459 y | 193.5 d | 75,300 y |
| 4 random words (7,776 list) | 51.7 | 5.8 million y | 57,900 y | 8.9 y | 1.3 million y |
| 8 random printable ASCII | 52.6 | 10.5 million y | 105,000 y | 16.1 y | 2.3 million y |
| 15 random lowercase letters | 70.5 | 2.7 x 10^12 y | 2.7 x 10^10 y | 4.1 million y | 5.8 x 10^11 y |
| 6 random words (7,776 list) | 77.5 | 3.5 x 10^14 y | 3.5 x 10^12 y | 536.4 million y | 7.6 x 10^13 y |
| 12 random printable ASCII | 78.8 | 8.6 x 10^14 y | 8.6 x 10^12 y | 1.3 x 10^9 y | 1.9 x 10^14 y |
| 16 random printable ASCII | 105.1 | 7 x 10^22 y | 7 x 10^20 y | 1.1 x 10^17 y | 1.5 x 10^22 y |
Two things fall out of the table. First, the offline columns are where passwords die, and the hash decides how fast. On one thread, eight random alphanumeric characters last 193.5 days against unsalted MD5 and 75,300 years against Argon2id; the gap between those two columns is a factor of about 142,000, and it is set entirely by the defender's choice of hash. That is why the password hashing article on this site exists. The offline cells are long only because they are one thread: an attacker divides every one of them by the number of threads and machines they bring, so a thousand threads like this one would take the MD5 cell for eight alphanumeric characters down to 4.6 hours. Second, the online columns are enormous even for weak methods, provided the rate really is throttled. A six-digit PIN survives half a day at ten guesses per second, and NIST's requirement in Section 3.2.2 is tighter than that: the verifier "SHALL implement a rate-limiting mechanism that effectively limits the number of failed authentication attempts", with a general limit of "no more than 100" consecutive failures. At a hundred guesses total, the script's second table shows the fraction of each keyspace an attacker covers: 1.5 x 10^-14 of the 8-character printable space, and 4.6 x 10^-13 of the alphanumeric one.
Offline guess rates, measured on one CPU
The offline columns above used to hold assumed rates (10^10 and 10^12 guesses a second). We replaced them with measurements. password-hash-bench.py hashes one fixed 12-byte password with a fixed 16-byte salt, again and again, at the settings the OWASP Password Storage Cheat Sheet recommends (plus higher bcrypt costs and one PBKDF2-SHA512 setting), and records the median time of 15 timed runs after two warm-up calls, in one process on one thread. MD5, SHA-1 and SHA-256 are too fast to time one call at a time from Python (a Python loop measures mostly its own call overhead, 1.65 to 1.81 million calls a second here), so their rows come from OpenSSL's native openssl speed on 16-byte inputs. For scrypt and Argon2id the script also records how much the process's peak memory grew during one hash, in a fresh process per setting.
pip install bcrypt argon2-cffi psutil
python code/password-hash-bench.py --out hashbench_out
python code/password-entropy-calculator-nist-800-63b.py --measured hashbench_out/results.csv
The run behind this page was made on 30 October 2026 (the data file's timestamp is 2026-10-30 04:03:11 UTC), on a 13th Gen Intel Core i9-13900HX laptop processor under Windows 10, with Python 3.13.12 and its OpenSSL 3.0.18 (PBKDF2, scrypt), bcrypt 5.0.0, argon2-cffi 25.1.0, and the OpenSSL 3.5.4 command-line tool for the fast hashes. The process was not pinned to a core, so the data file also keeps the fastest and slowest of the 15 runs for each setting.
| Hash and setting | Time per hash (median) | Hashes per second, one thread | Peak memory growth |
|---|---|---|---|
| MD5, unsalted (OpenSSL native) | 0.15 microseconds | 6,529,615 | n/a |
| SHA-256, unsalted (OpenSSL native) | 0.13 microseconds | 7,409,041 | n/a |
| PBKDF2-HMAC-SHA256, 600,000 iterations | 198.8 ms | 5.03 | n/a |
| bcrypt, cost 10 (OWASP minimum) | 41.2 ms | 24.27 | n/a |
| bcrypt, cost 12 | 199.6 ms | 5.01 | n/a |
| scrypt, N=2^17 r=8 p=1 | 389.3 ms | 2.57 | 128.1 MiB |
| Argon2id, m=47104 KiB t=1 p=1 | 33.4 ms | 29.92 | 45.3 MiB |
| Argon2id, m=19456 KiB t=2 p=1 | 21.8 ms | 45.92 | 18.3 MiB |
At those rates, here is how long one thread needs to reach half the keyspace of three common generation methods. The calculator prints this table for all 19 measured settings.
| Hash and setting | 8 random alphanumeric | 8 random printable ASCII | 4 random words (7,776 list) |
|---|---|---|---|
| MD5, unsalted | 193.5 d | 16.1 y | 8.9 y |
| SHA-256, unsalted | 170.5 d | 14.2 y | 7.8 y |
| Argon2id, m=19456 KiB t=2 | 75,300 y | 2.3 million y | 1.3 million y |
| bcrypt, cost 10 | 143,000 y | 4.3 million y | 2.4 million y |
| PBKDF2-HMAC-SHA256, 600,000 | 688,000 y | 20.9 million y | 11.5 million y |
| scrypt, N=2^17 r=8 p=1 | 1.3 million y | 40.9 million y | 22.5 million y |
What the measurements show:
- Choosing a password hash moves the offline column by five to six orders of magnitude on the same hardware. Per thread, MD5 ran about 142,000 times faster than Argon2id at OWASP's 19 MiB setting, 269,000 times faster than bcrypt at cost 10, 1.3 million times faster than PBKDF2-HMAC-SHA256 at 600,000 iterations, and 2.5 million times faster than scrypt at N=2^17. For eight random alphanumeric characters that is the difference between 193.5 days and 75,300 years. No password policy a person will tolerate adds that much keyspace: going from 8 to 12 random printable characters adds about 26 bits, a factor of about 81 million, and only for users who accept generated passwords.
- SHA-256 is no better than MD5 for this job. It ran slightly faster than MD5 on this processor. A "stronger" fast hash is not a slower one, and slowness is the property that matters for stored passwords.
- The OWASP settings are not equally slow on one CPU. OWASP calls its five Argon2id options an equal level of defense; on this thread they ran from 29.92 to 56.74 hashes a second, because they trade memory against passes. The memory column is the point of Argon2id and scrypt: each guess needs that much memory, which limits how many guesses an attacker's hardware can run side by side. A one-thread CPU timing cannot show that advantage, so read these rows as the cost to a login server, not as the full cost to an attacker.
- The defender pays the same price per login. At these settings one login costs this machine 21.8 ms of one thread with Argon2id at 19 MiB, 41.2 ms with bcrypt at cost 10, and 198.8 ms with PBKDF2 at 600,000 iterations. That is the budget to check against your own login latency and peak login rate before choosing a cost.
The limits, stated plainly: this is one thread of one laptop CPU, measured once. It is the rate a single ordinary thread reaches, not an attacker's rig. An attacker multiplies these rates by the threads and machines they bring, and graphics processors run MD5 and the SHA family far faster than any CPU thread; we have not measured a GPU, so no GPU figure appears on this page. What carries over to other hardware is the ordering of the hashes and the rough size of the gaps between them, not the absolute times.
Where the arithmetic stops being useful
The table describes uniformly random secrets. Real attacks on real password tables do not enumerate the keyspace; they try the passwords people actually use, in order of popularity, which is why "password" appears 52,372,427 times in the Pwned Passwords corpus (checked 2026-09-05 through the range API, and again on 2026-10-30 with the same count). Against that ordering, entropy is the wrong measure, and popularity is the right one.
This is the reasoning behind the other half of NIST's Section 3.1.1.2. Verifiers "SHALL compare the prospective secret against a blocklist that contains known commonly used, expected, or compromised passwords", explicitly including "passwords obtained from previous breach corpuses". Have I Been Pwned's Pwned Passwords service exists for this check; its own page notes that "NIST guidelines specifically recommend checking user passwords against previously breached datasets" and describes the k-anonymity design where the browser sends only the first five characters of a SHA-1 hash.
The rules that follow from the arithmetic
Read together, SP 800-63B's password requirements are the arithmetic above turned into policy.
| Rule (SP 800-63B, 2025 revision) | Why |
|---|---|
| Minimum 15 characters when the password is the only factor; 8 with MFA (3.1.1.2) | length is the one lever a policy can pull that reliably adds keyspace |
| Allow at least 64 characters (3.1.1.2) | passphrases from a wordlist need room; 6 words of 7 letters is over 40 characters with spaces |
| No composition rules (3.1.1.2) | they shrink the human-chosen set and do not add randomness |
| No periodic change unless there is evidence of compromise (3.1.1.2) | forced rotation produces predictable increments, not new entropy |
| Blocklist check against breach corpora (3.1.1.2) | real guessing is by popularity, not by keyspace |
| Rate limit failed attempts, generally no more than 100 (3.2.2) | it is the only thing that makes the online columns real |
| Salt of at least 32 bits, memory-hard hashing at the highest practical cost (3.1.1.2) | it is the only thing that makes the offline columns survivable |
One caveat on bcrypt, the older hash the OWASP cheat sheet still covers and the password hashing article tabulates: it caps input at 72 bytes. If your policy allows 64-character passwords and your hash is bcrypt, characters beyond 72 bytes are silently ignored, and a long passphrase in a non-Latin script can hit that limit well before 64 characters. Either use Argon2id or scrypt, or enforce the byte cap at the form.
What to do
For the systems you run:
- Set a 15-character minimum, a 64-character or higher maximum, and no character-class rules. Reject anything on a breach blocklist with a message that says why.
- Rate limit by account and by source, count failures, and lock or slow down long before 100 consecutive failures. Log the failures so the guessing shows in your logs.
- Hash with Argon2id at or above OWASP's minimum and measure your login latency;
password-hash-bench.pyprints the time per hash for each setting on your own hardware. - Run the calculator with your own alphabet and length to see which column your policy lives in, and remember the column is only as good as the rate limit or the hash that enforces it.
For your own accounts, the honest advice is the one the table gives: stop choosing passwords. Let a generator pick them, use at least twelve printable characters or five to six dictionary words where a site allows length, and let the password manager remember them. The entropy then belongs to the generator, which is the only place it can be measured.
The limitation, stated plainly: this calculator will not tell you whether your current password is good. Nothing can, from the string alone. It tells you what a generator buys and what the verifier on the other end has to do to keep that purchase intact.
Correction, 29 October 2026: this page said an audit script elsewhere on the site performs the same Pwned Passwords lookup. No such script is published yet (the range-API audit is still planned), so that clause is gone; the count itself, checked on 5 September 2026, is unchanged. It also referred to "the bcrypt row" of a table this article does not have; the sentence now points to the hashing article, whose table has that row.
Update, 30 October 2026: the offline columns of the guess-time table used assumed rates of 10^10 and 10^12 guesses a second. They now use rates measured on one CPU thread (MD5, and Argon2id at OWASP's 19 MiB setting), and the new section "Offline guess rates, measured on one CPU" gives the benchmark, its data file and the main measured settings. The online columns and the entropy figures are unchanged.