Password length versus variety: counting the bits

Adding symbols feels safer than adding length, but the arithmetic says otherwise. We counted the possible passwords for the character sets Apps24 generates and compared them as bits of entropy.

Input and result

10 × log2(91)65.1 bits
16 × log2(26)75.2 bits
16 × log2(62)95.3 bits
16 × log2(91)104.12 bits
16, all four types (exact)103.86 bits

What the result means

A random password has about length × log2(pool size) bits. Ten characters from all four sets (91 characters) give 65.1 bits, while 16 lowercase letters give 75.2 and 16 letters and digits give 95.3. Because Apps24 guarantees one character of every chosen type, its real value is slightly lower: exact counting gives 103.86 bits for 16 characters of all four types instead of 104.12.

What to do next

1. Pick the longest length the site accepts. 2. Turn on every character type the site allows. 3. If a site rejects symbols, add length instead. 4. Store the result in a password manager and never reuse it.

Use the tool

Limits and test conditions

Entropy applies only to passwords generated at random; a password a person chooses is far easier to guess. Bits do not give a time to crack, which depends on the attacker and on how the site stores passwords. The tool generates in your browser with Web Crypto and shows nothing if no character type is selected.

References

Apps24 checks examples against the implementation and regression tests. Browser experiments state their conditions; they do not certify every device. Report an error with the page URL, input, expected result and browser. Never send passwords, private documents or personal data.