pttooz

Password Generator

Cryptographically random passwords with a live strength gauge and crack-time timeline.

Live

How Password Generator calculator works?

The Password Generator calculator works in 4 steps: it reads your settings, builds a character pool, picks each character with a cryptographic random number generator and scores the result in bits of entropy. Every step runs inside your browser on the pttooz platform, and no password reaches a server.

  1. 1

    Read the settings

    The generator reads 2 inputs: a length from 4 to 64 characters and up to 4 character sets — uppercase (26), lowercase (26), digits (10) and symbols (28).

  2. 2

    Build the character pool

    The selected sets join into 1 pool. All 4 sets give a pool of 90 characters. “Avoid look-alikes” removes 7 characters (I, l, 1, O, 0, o, |) and cuts the pool to 83.

  3. 3

    Pick random characters

    The Web Crypto API (crypto.getRandomValues) draws every character with rejection sampling, which gives each character an equal chance. The generator places 1 character from each selected set, fills the rest from the full pool and shuffles the result with the Fisher–Yates algorithm.

  4. 4

    Score the password

    Entropy equals length × log₂(pool size). Crack time assumes an offline attack at 10 billion (10¹⁰) guesses per second. A typed password gets an estimate: repeated characters, sequences such as “abc” and common words such as “qwerty” lower the score.

Password Generator formula

The Password Generator uses 2 formulas: entropy E = L × log₂(N) and average crack time T = 2E ÷ 2 ÷ R. Pool size N is the sum of the selected character sets.

Password entropy

E = L × log₂(N)
E
Entropy in bits
L
Password length in characters
N
Pool size: 26 + 26 + 10 + 28 = 90 with all 4 sets
Length L12 characters
Pool N90 characters
log₂(90)6.49 bits per character
E = 12 × 6.4977.9 bits
Result77.9 bits · Strong

Average time to crack

T = 2ᴱ ÷ 2 ÷ R
T
Time in seconds
2ᴱ
Total combinations, equal to Nᴸ
÷ 2
An attacker finds the password after half the combinations on average
R
Guess rate: 10¹⁰ (10 billion) guesses per second
2⁷⁷·⁹ = 90¹²2.82 × 10²³ combinations
÷ 21.41 × 10²³ guesses
÷ 10¹⁰ per second1.41 × 10¹³ seconds
÷ 31,557,600 s per year447,483 years
Result≈ 447,000 years
Strength bands used by the gauge
Very weak0–27 bits
Weak28–35
Fair36–59
Strong60–79
Very strong80+ bits

Password Generator conversion chart

The Password Generator conversion chart converts password length into entropy bits and average crack time for 3 character pools: lowercase only (26), letters and digits (62) and all 4 sets (90). Cell color follows the strength band.

LengthLowercase a–z (26)Letters + digits (62)All 4 sets (90)
6 chars28.2 bitsInstantlyWeak35.7 bits3 secondsWeak39.0 bits27 secondsFair
8 chars37.6 bits10 secondsFair47.6 bits3 hoursFair51.9 bits2 daysFair
10 chars47.0 bits2 hoursFair59.5 bits1 yearFair64.9 bits55 yearsStrong
12 chars56.4 bits55 daysFair71.5 bits5.1K yearsStrong77.9 bits447.5K yearsStrong
14 chars65.8 bits102 yearsStrong83.4 bits19.6M yearsVery strong90.9 bits3.6B yearsVery strong
16 chars75.2 bits69.1K yearsStrong95.3 bitsLonger than the age of the universeVery strong103.9 bitsLonger than the age of the universeVery strong
20 chars94.0 bitsLonger than the age of the universeVery strong119.1 bitsLonger than the age of the universeVery strong129.8 bitsLonger than the age of the universeVery strong
24 chars112.8 bitsLonger than the age of the universeVery strong142.9 bitsLonger than the age of the universeVery strong155.8 bitsLonger than the age of the universeVery strong
32 chars150.4 bitsLonger than the age of the universeVery strong190.5 bitsLonger than the age of the universeVery strong207.7 bitsLonger than the age of the universeVery strong

Times assume an offline attack at 10 billion guesses per second against a fast hash. Slow password hashes such as bcrypt and Argon2 cut the guess rate by several orders of magnitude.

Password Generator FAQ

Is the pttooz Password Generator safe to use?

Yes, the pttooz Password Generator is safe to use: every password is created and scored inside your browser and never sent to a server. The generator uses the Web Crypto API, the random source browsers use for encryption keys. pttooz stores no passwords, keeps no logs and sets no tracking cookies.

How long should a password be?

A password should be at least 16 characters long for a Very strong score with all 4 character sets (103.9 bits). The National Institute of Standards and Technology (NIST) sets 8 characters as the minimum in SP 800-63B and asks services to accept passwords of at least 64 characters. A 12-character password from the 90-character pool reaches 77.9 bits and scores Strong.

What is password entropy?

Password entropy is the number of bits an attacker must guess to find a password. Each extra bit doubles the number of guesses. A 20-character password from 90 characters has 129.8 bits of entropy, or 2129.8 possible combinations.

Do symbols make a password stronger than extra length?

No, extra length adds more strength than symbols. Symbols raise the pool from 62 to 90 characters and add 0.54 bits per character: a 16-character password goes from 95.3 to 103.9 bits. Adding 4 characters to the same 16-character password adds 26 bits (103.9 to 129.8 bits).

Why does my own password score lower than a generated password?

A typed password scores lower when the password contains patterns that attackers test first. The Password Generator applies 3 penalties: a repeated character counts less each time the character repeats, neighbouring sequences such as “abc” or “123” count half, and common words such as “password” or “qwerty” cut the total by 45%.

What does “Avoid look-alikes” do?

“Avoid look-alikes” removes 7 characters that are easy to misread: I, l, 1, O, 0, o and |. The pool drops from 90 to 83 characters, and entropy per character drops from 6.49 to 6.38 bits. Turn the option on for passwords you read aloud or type from paper.

How does pttooz estimate time to crack?

pttooz estimates time to crack as half of all possible combinations divided by 10 billion guesses per second. 10 billion guesses per second matches an offline attack on a fast hash with modern graphics processing units (GPUs). Real crack times are longer for sites that store passwords with slow hashes such as bcrypt or Argon2.