How the Password Generator Works
AnyTool Password Generator produces every secret in the browser using the Web Crypto API. Random integers come from crypto.getRandomValues, and they are mapped onto the chosen character set with rejection sampling — values that would fall outside an even multiple of the pool size are discarded — so there is no modulo bias and every character is exactly equally likely. Math.random is never used for secret material. Random passwords can be 4 to 128 characters with any mix of uppercase, lowercase, digits and symbols, plus options to exclude look-alike characters, require at least one of each selected set, forbid repeats, and supply a custom symbol set.
- Randomness from crypto.getRandomValues (CSPRNG), not Math.random
- Rejection sampling removes modulo bias — uniform character choice
- Random password length 4–128 with selectable character sets
- Options: exclude ambiguous, require-each-set, no-repeat, custom symbols
- All generation is client-side JavaScript — no server round-trip
