Guides — Everyday

Password security guide

Length beats cleverness, uniqueness beats strength, and no password is unbreakable. Here is how password strength is actually measured — and what to do about it.

A padlock and shield protecting a laptop screen with a key

Most password advice is wrong in the same way: it tells you to make a password complicated, when what matters is making it long, making it different on every site, and never having to remember it at all. A password's strength is not a feeling — it can be measured, in bits of entropy — and the measurement says something surprising: a long, boring password beats a short, clever one every time. This guide explains that measurement, then the practical system that follows from it.

Entropy: the honest measure

Entropy counts how many guesses an attacker would need. It is calculated as length × log2 of the character pool — the number of different characters each position could be. A password drawn from only lowercase letters has a pool of 26; a password using uppercase, lowercase, numbers and symbols has a pool of about 94. The hub's password generator measures strength this way, and the numbers are stark.

Worked example: 16 characters, all four types

Entropy: about 103 bits — rated "Very strong"

Possible passwords: roughly 2^103 — a number with 31 digits

Even a computer trying a billion guesses a second would need far longer than the age of the universe to try them all.

Now shorten it to 8 characters with only lowercase letters: the entropy drops to about 38 bits, or roughly 275 billion possibilities, which a fast computer can chew through in hours. The lesson is plain — length beats cleverness. A long password of random characters is stronger than a short one with symbols swapped in, and far stronger than any memorable word with a number at the end. Swapping a letter for a symbol — "p@ssw0rd" instead of "password" — adds almost nothing, because attackers try those swaps first. Adding four more random characters multiplies the guesses needed by far more than any clever substitution ever will.

The system: a manager, not a memory

A strong password you cannot remember is useless, so do not try to memorise them. Use a password manager — the one built into your phone or browser is enough to start — and let it store a different random password for every account. Generate passwords of at least 16 characters with all four character types for important accounts; longer is stronger, because each extra character multiplies the number of possible passwords. The rule that matters most is uniqueness: if one site is breached, the stolen password must not open your email, your bank and your Facebook too. Never reuse the password you use for your email anywhere else, because your email is the key that resets all the others. Turn on two-step verification for email and banking, where a code on your phone is needed as well as the password — that way, even a leaked password alone is not enough to get in. The hub's generator creates passwords entirely in your browser with the cryptographic random generator (crypto.getRandomValues), not the predictable Math.random, so the result cannot be predicted — and nothing is uploaded, stored or logged; the password exists only on your device until you copy it.

Passphrases: the one password worth memorising

There is one password you do need to remember: the master password of your password manager. For that one, a long passphrase of four or five random words can be both strong and memorable — far better than a short jumble of characters you will forget and write down. The words must be random, not a sentence or a quote: a phrase from a song or a book is guessable in a way that five unrelated words are not. For every individual account, a random password stored in the manager is simpler, because you never have to type or remember it. If a service reports a breach, or you suspect a password leaked, change that password immediately. But do not change passwords on a schedule: routine forced changes push people toward weaker, predictable passwords — the next one is usually the last one with a digit changed. Change on suspicion, not on a calendar.

PINs: short passwords with the same rules

A PIN is a password made only of digits, and the same length rule applies. A 4-digit PIN has 10,000 possible combinations; a 6-digit PIN has 1,000,000 — a hundred times more. Use 6 digits wherever the device or card allows it. And the same uniqueness rule applies: never use the same PIN on every card. If one card is lost or one PIN is seen, every card sharing it is exposed — use a different PIN for each card and device. Never use your birthday as a PIN: birthdays are among the first guesses an attacker tries, and anyone who knows you may already know yours. Never use 1234 or 0000 either; they are the first combinations tried on any device. The hub's PIN generator draws each digit with the same cryptographic random generator, so every PIN in the range has the same chance, and nothing is stored or sent anywhere.

What a strong password does not protect you from

No password, however strong, is unbreakable in every sense — and honest advice says so plainly. A strong password protects you against guessing: someone trying combinations one by one. It does not protect you if you type it into a fake login page, if your device has malware that records what you type, or if the service itself is breached and its stored passwords are stolen. That is why uniqueness matters more than strength: a breach at one site should cost you one password, not all of them. And it is why two-step verification matters: it means a stolen password alone is not enough. If a website or message asks you to log in through a link sent by email or chat, go to the site yourself instead of clicking through — a password typed into the real site is safe, and the same password typed into a copy of the site is gone. If an account offers a security key or an authenticator app, those are stronger than a code by text message, but any second step is far better than none.

Five rules to keep

First, at least 16 characters with all four character types for important accounts. Second, a different password on every account, stored in a password manager. Third, two-step verification on email and banking. Fourth, your email password used nowhere else. Fifth, change a password immediately on any sign of a breach — and never on a fixed schedule. Follow those five and you have done more for your accounts than any amount of clever spelling ever will.

Generate a strong password: Password Generator — 8 to 64 characters, made in your browser, nothing leaves your device.

Generate a random PIN: PIN Generator — random 4- or 6-digit PINs, generated in your browser.

No password is unbreakable. Strength here is measured by entropy against guessing. A strong, unique password plus two-step verification is the practical standard — it does not protect against phishing pages or malware on your device.