How to Create Strong Passwords, and Why Hashing Is Not Encryption
You can follow every rule, with capitals, digits and a symbol, and still end up with a weak password. Strength comes from how unpredictable a password is, not from how complicated it looks. This guide explains why random passwords win and clears up three ideas that are often confused: hashing, encryption and encoding.
Updated: 2026-11-20
Strength is a numbers game
An attacker tries candidate passwords one after another, so strength is measured by how many possibilities exist, usually expressed as entropy in bits. If you pick L characters completely at random from a set of N characters, there are N to the power of L combinations, and each character adds log2 of N bits.
Digits alone give about 3.3 bits per character. Upper and lower case letters plus digits, 62 characters in all, give about 6 bits, and adding symbols to reach roughly 84 characters gives about 6.4 bits. Length helps far more than a bigger character set: 16 random letters and digits come to about 95 bits, and 20 of them to about 119 bits.
The key assumption is randomness. A human-chosen password like Summer2024! satisfies the usual rules but follows an obvious pattern of word, year and trailing exclamation mark, so dictionary attacks with common substitutions find it quickly. Its real strength is far below what the arithmetic suggests.
Generate random passwords in Poptools
The Password generator uses the secure random number source built into your browser and does not save its results anywhere. It guarantees at least one character from each selected group, so the output satisfies rules such as must contain a digit. With letters, digits and symbols selected, symbols are drawn from !@#$%^&*()-_=+[]{}:,.?
- Set Password length. It starts at 20 and accepts values from 4 to 256.
- Set Number to generate. The default is 5 and the maximum is 100, so you can pick a favorite from several.
- Under Character set, choose Letters, digits and symbols, Letters and digits, or Digits. If a site rejects certain symbols, choose letters and digits and add a few characters of length.
- Choose Generate, copy the password you will use and save it straight into your password manager.
Manage passwords instead of memorizing them
Nobody memorizes twenty random characters for every account. The usual advice today is a unique password for each site, with a password manager doing the remembering. Attackers routinely try passwords leaked from one site on others, so reusing a password can be more dangerous than using one that is slightly short.
For the one or two passwords you must remember, such as the master password for your manager, a passphrase made of several unrelated words is easier to recall. Words you choose yourself are less random, so pick them from a word list with dice or a random number generator. Turn on two-factor authentication wherever it is offered.
Hashing, encryption and encoding are different things
Encoding only changes how data is written down; it keeps nothing secret. Base64 is the classic example: Hello becomes SGVsbG8=, and anyone can turn it straight back. Storing a password in Base64 is no different from storing it in plain text.
Encryption is a reversible transformation that needs a key to undo, used to protect data you will need to read again, such as messages and files. Hashing is a one-way calculation that turns any input into a fixed-length value, and there is no way to compute the input from the result. The same input always gives the same hash, and changing a single character changes the output completely.
That does not make a single round of SHA-256 a safe way to store passwords. SHA-256 is designed to be fast, so attackers can test candidates at enormous speed, and identical passwords produce identical hashes that precomputed tables can look up. Anyone building a login system should add a unique salt for each user and use a deliberately slow password hashing function such as bcrypt, scrypt or Argon2.
See SHA-256 in action
Type hello into the SHA-256 hash tool and you get a 64-character hexadecimal value beginning with 2cf24dba. Add a trailing space, or change the first letter to Hello, and the whole result changes. The tool hashes your exact input as UTF-8 text, so even an invisible line break produces a different hash.
That behavior is why hashes are used to check whether two texts are exactly identical or whether content was altered in transit. Note that this tool hashes text only and does not calculate checksums for files. And the safest habit is never to type a password you actually use into any web tool; experiment with sample sentences instead.
Tools used in this guide
- Password generator
Generate passwords using secure randomness on your device.
- SHA-256 hash
Calculați un hash SHA-256 pe dispozitivul dvs.
- Codificare și decodare Base64
Codați sau decodați textul Unicode cu Base64.
More guides
- How to Send Only Some Pages of a PDF
- How to Turn Phone Photos of Documents into One PDF
- How to Crop and Resize a Photo for an Application Form
- How to Remove Location and Camera Data (EXIF) from Photos
- PNG, JPG or WebP? Choosing a Format and Shrinking Web Images
- How to Fix Broken JSON and Convert It to a Spreadsheet
- How to Schedule a Meeting Across Time Zones
- How to Split a Group Bill Fairly, Including Tips
- How to Compare Two Versions of a Text or Two Lists