A strong password is long, random and used for one account only. Length and randomness matter far more than swapping letters for symbols. For almost every account the practical method is the same: let a generator make the password and let a password manager remember it.
For the few passwords you have to type from memory, such as the one that unlocks your computer or the password manager itself, use a passphrase made of several randomly chosen words.
Why clever substitutions do not help
People who guess passwords do not try every combination in order. Their programs start with what people really choose: dictionary words, names, dates, keyboard patterns, and the usual decorations such as a capital first letter, a zero for the letter o, and a year or a symbol at the end. A password that a person thinks up comes from a much smaller pool than it seems to, even when it looks complicated.
A password picked by a random process has no pattern to exploit. The only attack left is trying everything, and that is where length counts.
What length does, in numbers
Strength is often given in bits. Each extra bit doubles the number of possibilities someone would have to try.
- 8 random lowercase letters give about 38 bits.
- 12 random characters drawn from 85 letters, digits and symbols give about 77 bits.
- 16 such characters give about 102 bits.
Every added character multiplies the work by 85 in this example. These figures hold only when the characters are chosen at random. A word with a few changes may have the same length and still be among the first things tried.
Passphrases for the passwords you must remember
Sixteen random characters are hard to memorise and tedious to type. Random words are a better fit for memory. The well-known Diceware method picks each word from a list of 7,776 words by rolling dice. Each word adds about 12.9 bits, so six words give about 77.5 bits and eight words about 103.
The words have to be picked by dice or by a program, not by you. A line from a song, a quotation or a sentence about your family is not a passphrase in this sense, because such phrases can be guessed.
One password per site
Websites get breached, and lists of email addresses with their passwords end up in the wrong hands. Attackers then try the same pairs on other services. If your password is different everywhere, a breach at one shop costs you one account. If you reuse it, the same breach opens your email and everything attached to it. A fixed base with the site name added is not much better, since the scheme is obvious to anyone who sees one example.
Password managers and two-factor authentication
Nobody can remember a separate random password for a hundred accounts, and nobody needs to. A password manager creates them, stores them encrypted and fills them in. Current browsers and phone systems have one built in, and there are separate programs as well. You then remember one strong passphrase for the manager.
Two-factor authentication adds a second step at login, such as a code from an authenticator app, a text message or a hardware security key. With it, a stolen password alone is not enough. Codes sent by text message are generally considered the weakest of these options, but they are still much better than no second step. Turn it on for your email account first, because email is how the passwords of your other accounts are reset.
Changing passwords on a fixed schedule is no longer the usual advice. Change one when you have reason to think it has leaked.
How the password generator on this site works
The Password generator shows a 16-character password as soon as you open it. Its Length slider goes from 6 to 64 characters, and four boxes switch uppercase letters, lowercase letters, digits and symbols on or off. With all four on, it draws from 85 different characters, which is where the figures above come from.
- Every character is chosen with the browser's cryptographic random generator, so that each one is equally likely.
- The password always contains at least one character of every type you ticked, and the order is shuffled afterwards.
- Avoid look-alikes (l, 1, O, 0) leaves out six characters that are easy to confuse. That reduces the pool to 79 characters, and a 16-character password still has about 101 bits.
- Generate again makes a new one, and Copy puts it on the clipboard.
The password is made on your device. It is not sent anywhere or stored, so save it in your password manager before you close the page. The guide to the password generator explains each option.
The same thinking applies to files. A password on a document made with Protect PDF is only as good as the password you choose, and it cannot be recovered if you lose it. If you install a password manager from a download page that lists a checksum, you can verify the download before running it.