HomeBlogHow to Create Strong Passwords (and Why Hashing Matters)
Tips & TricksNovember 15, 20266 min read

How to Create Strong Passwords (and Why Hashing Matters)

What actually makes a password hard to crack, how to generate one properly, and how websites are supposed to store it using hashing. Plain explanations with real numbers.

Most password advice is a list of rules: at least one capital letter, one number, one symbol, change it every 90 days. Many of those rules turn out to matter far less than people think, and some have been dropped from official guidance altogether. What really decides whether a password survives an attack is much simpler, and it can be measured.

This article explains what makes a password strong, how to generate and manage good ones, and what happens on the other side: how a responsible website stores your password using hashing, and why that matters when a site gets breached.

How passwords actually get cracked

Attackers rarely guess passwords by typing them into a login page; most sites lock you out after a handful of attempts. The real risk comes from data breaches. When a site's database is stolen, attackers take the stored password data offline and test guesses against it as fast as their hardware allows, sometimes billions of guesses per second.

They do not start with random strings. They start with lists of passwords leaked in earlier breaches, dictionary words, names, dates, and common patterns like "Summer2026!". A password that looks complicated but follows a predictable pattern falls quickly. A password that is genuinely random and long enough does not.

What makes a password strong: length and randomness

Password strength is often expressed as entropy, measured in bits. For a randomly generated password, the calculation is straightforward: entropy equals the length multiplied by log2 of the number of possible characters. Each extra bit doubles the number of guesses needed.

Password typeExample patternApproximate entropy
8 random lowercase letterskqzvmtra38 bits
8 random characters, letters, digits and symbolsr7#Kp!2w52 bits
12 random characters, mixed set of 88vT9;fQ2^mL<e78 bits
16 random characters, mixed set of 88(16 characters)103 bits
6 random words from a 7,776-word listcrane-oval-lumber-tidy-jest-ruby78 bits

Two things stand out. First, length beats complexity: adding characters increases strength faster than adding character types. Second, these numbers only apply if the password is truly random. "P@ssw0rd2026" uses every character type and is still one of the first things an attacker will try.

As a practical target, 70-80 bits is very strong for an online account, and 100 bits or more is comfortably out of reach of any realistic brute-force attack.

What current guidance recommends

The US National Institute of Standards and Technology (NIST) publishes widely followed guidance in its Special Publication 800-63B. Its recommendations include allowing long passwords, not forcing arbitrary composition rules, not requiring periodic changes unless there is evidence of compromise, and checking new passwords against lists of known breached passwords. In short: prefer long and unique over short and "complex".

How to generate a strong password

Humans are bad at being random, so let software do it. Our password generator runs in your browser and uses the Web Crypto API's crypto.getRandomValues, a cryptographically secure random source, rather than the predictable Math.random. The generated passwords are not sent anywhere.

  1. Set the length. The slider goes from 4 to 128 characters; the default of 16 with all character types gives roughly 100 bits of entropy. Go longer for anything critical, such as your email or password-manager master password.
  2. Choose character sets. Uppercase, lowercase, numbers and symbols are all on by default. If a site rejects certain symbols, edit the custom symbols field rather than turning symbols off entirely.
  3. Consider "Exclude Ambiguous". This removes 0, O, l, 1 and I, which helps if you ever need to read a password aloud or type it from a printout. It reduces entropy slightly, so add a character or two to compensate.
  4. Use "No Duplicate Characters" sparingly. It also reduces the pool of possibilities. If you request more characters than the selected sets contain, the result will be shorter than the length you asked for, so check the output.
  5. Generate and copy. You can create up to 50 passwords at once and copy them individually or all together.

The strength meter gives a quick rating based on length and the character types selected. Treat it as a rough guide; the entropy figures above are a more precise way to think about it. Because characters are picked randomly, a short password will occasionally lack a digit or symbol; if a site insists on one, just generate another.

Store passwords in a password manager

A strong password is only useful if every account has a different one. Reusing a password means a breach at one small site gives attackers the key to your email or bank. Nobody can memorize dozens of random strings, which is exactly why password managers exist. Use one, give it a long master passphrase you can remember, and turn on two-factor authentication wherever it is offered.

The other half: why hashing matters

A well-run website never stores your actual password. Instead, it stores a hash: the output of a one-way function that turns any input into a fixed-length string. When you log in, the site hashes what you typed and compares the result to the stored hash.

Good hash functions have three key properties: the same input always gives the same output; a tiny change in the input produces a completely different output; and you cannot practically work backwards from the hash to the input. For example, the SHA-256 hash of the word hello is:

2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824

Change a single letter and the output changes beyond recognition. You can try this yourself with our hash generator, which computes MD5, SHA-1, SHA-256, SHA-384 and SHA-512 for text or files in your browser, and includes a box for comparing two hashes.

Fast hashes are not enough for passwords

Here is the important nuance. MD5 and the SHA family are designed to be fast, which is great for checking that a downloaded file has not been corrupted or tampered with, but bad for storing passwords. Fast means attackers can test enormous numbers of guesses per second. Worse, the hash of a common password is always the same: the MD5 of password is 5f4dcc3b5aa765d61d8327deb882cf99, and searching for that string online reveals the answer instantly. MD5 and SHA-1 also have known collision weaknesses and should not be used for security purposes.

Proper password storage uses two extra ingredients:

  • A salt: a random value unique to each user, combined with the password before hashing. Two people with the same password end up with different hashes, and precomputed lookup tables become useless.
  • A deliberately slow algorithm: functions such as bcrypt, scrypt, PBKDF2 or Argon2 (the winner of the 2015 Password Hashing Competition) are designed to be expensive to compute, which cuts an attacker's guessing speed by many orders of magnitude.

So use the hash generator for what fast hashes are good at: verifying file checksums, comparing data, and learning how hashing behaves. If you are building a login system, use a slow, salted algorithm from a well-maintained library.

Summary

Make passwords long, random and unique, and keep them in a password manager. Generate them with a cryptographically secure tool rather than inventing them. And remember that even the best password depends on the site storing it properly, with a salted, slow hash, which is one more reason never to reuse the same password twice.

passwordssecurityhashingsha-256privacy