applets.

Password Strength

← All apps

About Password Strength

CHECK a password and see how many guesses it would really take: not just "every combination", but the way crackers actually work, trying common passwords, words, keyboard runs and years first. It splits the password into the pieces it found, gives each one's guesses, and turns the total into rough cracking times. It never leaves this page: nothing you type is sent anywhere, saved or logged; the checking is done by this page in your browser. GENERATE makes random passwords and passphrases. The BRUTE-FORCE RACE tries every password of up to five characters in order, so you can see how quickly short ones fall. Keys (when you're not typing): / goes to the password box, G makes a new password, R runs the race.

THE STORY

The simplest attack is to try everything. Julius Caesar's cipher shifts each letter a fixed number of places, so there are only as many keys as there are letters in the alphabet. The "Brute Force" script this app started from, out of Al Sweigart's book Cracking Codes with Python, uses an alphabet of 66 symbols, so it simply tries all 66 keys and prints every result. Passwords fall the same way when there are few enough of them.

But people don't pick passwords at random. In 1979 Robert Morris and Ken Thompson studied the passwords on a Unix system and found most were short, or ordinary words. When the social games company RockYou was hacked in 2009, 32 million passwords leaked in plain text; "123456" was the most common, and lists like it are now the first thing crackers try. In 2012 Dropbox published zxcvbn (named after a keyboard run), a checker that estimates guesses by spotting these patterns; this app works the same way, written from scratch with the site's own word lists.

In 2011 the web comic xkcd ("Password Strength") compared "Tr0ub4dor&3", a word with look-alike swaps, at about 28 bits, with "correct horse battery staple", four random common words, at about 44 bits: easier to remember and harder to guess. (Both examples are now so famous that they're on crackers' lists themselves, so this checker knows them too.) The UK's National Cyber Security Centre recommends "three random words" for the same reason. And in 2017 the US standards body NIST dropped the old advice to force symbols and change passwords regularly, recommending instead that sites check new passwords against lists of known leaked ones.

HOW IT WORKS

Every combination is the number of characters in the sets you used (26 lowercase, 26 capitals, 10 digits, 32 symbols and space) to the power of the length. Smarter guessing finds every piece it recognises: about 175 notorious passwords, about 112,000 English words (ranked by how common they are), the same backwards or with look-alikes (p@ssw0rd), words joined by spaces or the same separator (a passphrase, counted as one piece: each word, the separator, the capitals and any digit), capitals at the start or end, keyboard runs (qwerty, 1qaz), runs like abcd or 1357, repeats, years and dates. Anything left is counted by brute force over the kinds of character it uses. It picks the cheapest way to cover the whole password, with a charge for each extra piece (an attacker has to guess how the pieces fit together too). It doesn't know names, places, sports teams beyond a few, or anything about you, like your pet's name, so real attackers can do better: treat the numbers as an upper limit for a guessable password.

Cracking times are the guesses divided by a rough speed: a website that slows down repeated tries (about 10 a second), one that doesn't (1,000), a stolen password file protected by a slow hash such as bcrypt (10,000), or by a fast hash on a rig of graphics cards (10 billion). Real speeds vary a lot with the hash and the hardware: on the fastest hashes, modern graphics cards can go faster still. The labels go by the slow-hash attacker: Very weak falls within a second, Weak within a day, Fair within a year, Good within a few centuries.

Bits are the number of guesses written as a power of two: each extra bit doubles them. The generator uses your browser's secure random numbers (crypto.getRandomValues), and picks each character without favouring any (it throws away the few random numbers that would). The original Python generator used Python's random module, which its own documentation says not to use for security (its secrets module is the one for that). Passphrase words come from about 7,500 common 3 to 8 letter words; each adds about 12.9 bits. A capital at the start of each word adds nothing (an attacker would try it), so the bits don't count it. The generator's bits are the true figure, since it knows how the password was made; the checker can only guess, so it may give a few bits more or less for the same password (it doesn't know which list of words was used).

Best of all: use a different password for every site (a password manager makes this easy), and turn on two-step sign-in where you can. A strong password reused on a site that gets hacked is no longer strong.

FURTHER WATCHING AND READING

CHECK A PASSWORD

It never leaves this page. Nothing you type is sent, saved or logged; the checking happens here in your browser.

–

Type a password to see how it would stand up.

EVERY COMBINATION

–

The character sets used, to the power of the length.

SMARTER GUESSING

–

What a cracker trying likely passwords first would need.

THE PIECES IT FOUND

Words, keyboard runs, years and so on show here, each with its guesses.

ROUGH TIME TO CRACK

TIPS

  • Long beats clever: a few random words make a strong password you can remember.

GENERATE

16

BRUTE-FORCE RACE

Speed
GUESSES
0
RATE
–
TIME
–