HOW IT WORKS
Unbiased CSPRNG & password entropy
Every character is drawn locally using the browser's Web Cryptography API (crypto.getRandomValues) with rejection sampling so no character is favored over another.
Build the Active Character Pool
Selected sets combine into a pool of size N: uppercase (26), lowercase (26), digits (10), and symbols (28), optionally excluding 8 ambiguous characters (i, I, l, 1, L, o, 0, O).
Full Pool N = 26 + 26 + 10 + 28 = 90 charactersEliminate Modulo Bias via Rejection Sampling
For pool size N, values at or above ⌊2³² ÷ N⌋ × N are discarded and redrawn so every index in [0, N) has equal probability.
Index = uint32 % N (when uint32 < limit)Measure Entropy in Bits
Password entropy H measures unpredictability on a logarithmic scale using length L and pool size N.
H = L × log₂(N) bits