How the password generator works
Random characters and entropy
The browser supplies cryptographic random bytes. Rejection sampling gives each allowed character the same chance. With A characters and length L, the unconstrained space has Aᴸ strings. Entropy is log₂ of the number of valid strings. Requiring every selected group reduces the valid space.
Worked example
Using only ten digits with length 8 gives 10⁸ possibilities, about 26.58 bits. Adding length increases the number of possibilities multiplicatively.
Options and limits
Generate 1–10 passwords of 4–128 characters. The default length is 24. The entropy estimate describes this generator’s search space under its selected rules. It cannot model password reuse, disclosure, or a service’s authentication protections. NIST SP 800-63B-4 sets a minimum of 15 characters for verifiers that use a password as the sole authentication factor. The character-group option accommodates service-specific rules.
W3C Web Cryptography API · NIST SP 800-63B-4
For drawing numbers for a simulation or game, use the Random Number Generator.
Common questions
Where does the randomness come from?
The browser’s Web Crypto API provides the random bytes. The selection method rejects bytes that would bias the character probabilities.
What happens when I require each selected group?
Candidates missing a selected group are discarded. The entropy estimate counts only strings that meet the group rule.
What does removing ambiguous characters do?
It removes characters such as 0 and O from the selected alphabet. The entropy estimate adjusts to the resulting alphabet.