Wesloo
All topicsTopics

Computer security

How do you create a strong password?

Short answer

A strong password is long, random, and used only once. A password manager can generate and store such passwords, while a memorable master password or passphrase protects the manager itself.

Key points

  • Length increases the number of possible passwords more than symbol rules alone.
  • Random generation avoids predictable substitutions and keyboard walks.
  • Every account should have a unique password.
  • A password manager can generate, store, and fill passwords automatically.
  • Two-factor authentication adds protection if a password leaks.

How do you create a strong password? Start with length and randomness, then give every account its own password. A strong password is not a clever word with a few symbols added; it is a value drawn from a large enough space that guessing it becomes impractical.

How do you create a strong password?

The practical answer has three parts: make it long, make it random, and never reuse it. Length increases the number of possible values; randomness prevents an attacker from exploiting human habits; uniqueness limits the damage when one site is breached. The NIST digital identity guideline, SP 800-63B, updated in 2025 from its 2017 version, advises against mandatory complexity rules and favors length and uniqueness. A 16-character random password is stronger than an 8-character password that merely includes a capital letter and a symbol. The guideline favors length and uniqueness over mandatory complexity rules.

Why length changes the math

Adding a character multiplies the number of possible passwords by the character set size. With 95 printable ASCII characters, a 12-character password has about 5.4 × 10^23 possible values, while a 16-character password has about 4.4 × 10^31. Four extra characters multiply the search space by roughly 81 million. That jump is why adding characters is more reliable than adding rules. A value such as 3o(t&gSp&3hZ4#t9 illustrates the idea: 16 characters, mixed types, no pattern. If you must choose between a shorter password with every character type and a longer password from a smaller set, choose the longer one, provided it is random.

LengthPossible values with 95 characters
12about 5.4 × 10^23
16about 4.4 × 10^31

Why people are bad at randomness

Human-chosen passwords are rarely random. They tend to choose words, dates, names, and keyboard walks such as qwerty123. Even when complexity rules are applied, the results often follow predictable substitutions, such as replacing letters with similar-looking numbers or symbols. Studies of exposed password databases show that passwords meeting complexity rules still cluster around predictable patterns. Rule-based attacks try those substitutions early, long before they exhaust a truly random space.

A CSPRNG makes each character an independent draw, so earlier characters do not affect later ones. The browser's window.crypto.getRandomValues() relies on operating-system randomness. The result has no exploitable pattern. Never build a password from a word, date, pet name, or keyboard walk. Symbol substitutions do not fix a predictable base.

Use a password manager for most accounts

A password manager application can generate strong, unique random passwords, remember them, and fill them in automatically. A built-in generator can create a fresh password whenever you need one. That removes the need to invent and memorize dozens of passwords. Many managers also offer security dashboards that flag passwords worth replacing and tools that can change passwords automatically.

The catch is the master password. You still need one strong password that you can remember, because it protects the vault. Make that password long and random enough to resist guessing, then let the manager handle the rest. Using strong passwords on every account is realistic only when a manager handles storage. See how to recognize phishing emails.

Passphrases for passwords you must remember

When you must remember a password, a passphrase can be easier than a random string. One well-known comic advises using four unrelated words joined into a passphrase. Its strength comes from unpredictable word choice and overall length.

Another method is to take a memorable phrase and change it by dropping vowels, using first letters, or adding numbers. You can also double a phrase with a separator, such as a hyphen or underscore, and vary the spelling. Replacing vowels with favorite numbers can make a transformed phrase easier to remember. Practice typing it until you remember it. Do not use personal details such as initials or a birthday in a password. Personal details are easy to research and often appear in targeted guesses. A passphrase should be long enough that even a smaller character set still produces a large search space.

Building a password by hand

If you cannot use a generator, follow these rules:

  1. Use at least 12 characters; 16 is better for random passwords.
  2. Mix uppercase and lowercase letters, numbers, and symbols.
  3. Draw characters from a random process, not from a word or pattern.
  4. Make it unique to one account.
  5. Test that you can type it reliably before relying on it.

Using several character types makes a password harder to crack. But the mix should support length and randomness, not replace them. If you use a transformation method, avoid obvious substitutions that attackers expect. The final password should not be a dictionary word with a number appended.

Add two-factor authentication

A strong, unique password helps, but it is not enough on its own. Phishing can capture a password even when it is well constructed, and breaches can expose stored credentials. Two-factor authentication requires a second proof of identity, such as an authenticator code, hardware key, passkey, or push notification. If a password leaks, the second factor still blocks login. Use it on email, banking, password manager, and any account that can reset other accounts. Passwords are shared secrets; public-key cryptography is a different tool for proving identity without sharing a secret. That distinction matters because a password alone cannot prove who you are if it has been copied.

Mistakes to avoid

  • Reusing one password across multiple sites.
  • Using personal details, dictionary words, or keyboard walks.
  • Relying on complexity rules while keeping the password short.
  • Writing passwords in plain text where others can read them.
  • Ignoring breach warnings from a password manager.

If a password appears in a breach, replace it everywhere it was used. A manager's security dashboard can help identify those cases. Do not send passwords by email or chat, and do not store them in unencrypted notes.

A practical checklist

  1. Generate a unique random password for each account.
  2. Make the password manager's master password long and memorable.
  3. Enable two-factor authentication on important accounts.
  4. Review and replace weak or reused passwords.
  5. Learn to spot phishing so a strong password is not handed over.

A password is only one control; combine it with updates, backups, and careful link checking.

Questions people also ask

How long should a strong password be?

Aim for at least 12 characters, and 16 or more for random passwords. Length increases the number of possible values more reliably than adding a few symbols.

Is a password manager safe to use?

A password manager can generate, store, and fill unique passwords, but its master password must be strong and memorable. Use two-factor authentication on the manager account.

Are passphrases stronger than random passwords?

A long passphrase made of random words can be strong because of its length and unpredictability. A random password of similar or greater length from a larger character set is also strong.

What should I avoid in a password?

Avoid personal details, dictionary words, keyboard walks, and reuse across sites. Symbol substitutions do not fix a predictable base.

Does two-factor authentication replace a strong password?

No. It adds a second check if the password is stolen, but the password should still be long, random, and unique.

Related pages

  • What is TLS traffic and how it protects web traffic

    TLS traffic is ordinary web traffic protected by the Transport Layer Security protocol. TLS encrypts the payload, verifies the server's identity with a certificate, and adds a message integrity check. The result is that eavesdroppers cannot read the data and tampering is detected.

  • What is ransomware attack? Definition and risks

    Ransomware is malware that blocks access to files, systems, or networks and demands payment for their return. Attackers often encrypt data. Backups, patching, and careful handling of email and remote access reduce the chance of a costly incident.

  • What is zero trust security model? A practical guide

    A zero trust security model is a framework that checks every access request instead of trusting users or devices by location. It uses identity, device health, and context to grant limited, temporary access. The goal is to reduce breach impact across cloud, remote, and on-premises systems.

  • How does a firewall work? Network security basics

    A firewall monitors and controls incoming and outgoing traffic using configurable rules. It commonly relies on packet filtering, proxying, and connection-state tracking to block unauthorized access. Hardware, software, and virtual forms can protect a single device or an entire network.

  • What is a digital signature in Adobe Acrobat?

    A digital signature in Adobe is a certificate-based electronic signature used to sign and verify PDF documents. It confirms who signed, shows whether the file changed after signing, and supports compliance with strict regulations. Signers need a digital ID from a cloud provider or a local system before applying it.

  • How to Recognize Phishing Emails: Red Flags and Checks

    Phishing emails imitate trusted senders to steal passwords, account numbers, or other sensitive data. You can recognize them by checking the real sender domain, link destinations, wording, and the type of request. When a message feels off, verify it through a trusted channel and report it.

How this page was prepared

Before writing, the topic was researched in the sources below. The page then passed automatic quality checks.

Report a mistake on this page