A password hash is a scrambled fingerprint of your password that a website stores instead of the password itself. It’s made by a one-way math function: easy to calculate from the password, but practically impossible to turn back into it. When you sign in, the site hashes what you typed and checks whether the two fingerprints match.
That’s the whole idea in three sentences. To see why it matters, and why some hashes protect you far better than others, let’s follow one person and one password from sign-up day to the day things go wrong.
Chapter 1: Maya picks a password
Maya is signing up for a new online bookshop. The form asks for an email and a password. She’s in a hurry, so she types sunflower2019, the same password she uses for her email and two other shops. She clicks Create account and forgets about it.
What she typed now travels to the bookshop’s server, protected on the way by the padlock in her browser (HTTPS). But HTTPS only guards the trip. What really counts is what the server does with the password once it arrives, and whether it keeps a copy anyone could read later.
Chapter 2: The website writes down a fingerprint, not the password
A careless website would save sunflower2019 exactly as typed, in a database table next to Maya’s email. The bookshop does something smarter. It runs the password through a hashing function and stores only the result: a long string of letters and numbers that looks like noise.
This is what password hashing means. A hash function always gives the same output for the same input, the output is a fixed length no matter how long the password is, and changing even one letter produces a completely different result. Most importantly, it only works in one direction. There’s no “unhash” button. Even the people who run the bookshop can’t look at the stored value and read Maya’s password.
So what is hashing, in general? It’s turning any piece of data into a short, fixed-size fingerprint. Computers use it everywhere, for example to check that a downloaded file wasn’t damaged. Password hashing is one special use of it, with extra rules we’ll meet in a moment.
Illustrative only, not a real hash: the bookshop’s database might hold something like
$argon2id$v=19$m=65536,t=3,p=4$Xk9q…$7f3a9c1e…b42d
The start names the method and its settings, the middle part is the salt, and the end is the fingerprint itself. Nowhere in it is the word “sunflower”.
Chapter 3: Maya signs in again
A week later Maya comes back to buy a novel. She types her email and sunflower2019. The bookshop doesn’t need to know her password to check it. It takes what she just typed, hashes it the same way, and compares the new fingerprint with the stored one. They match, so the door opens.
If she had made a typo, say sunflower2018, the fingerprint would come out completely different and the site would say the password is wrong. This is also why a well-run site can never email you your old password: it simply doesn’t have it. It can only let you set a new one. A site that sends your current password back to you in an email is storing it in a way it shouldn’t.
Chapter 4: The salt
Here’s a problem. Thousands of other customers also chose easy passwords, and some of them picked sunflower2019 too. With plain hashing, everyone with the same password gets the same fingerprint. An attacker could hash a big list of common passwords once (a precomputed list like this is often called a rainbow table) and instantly spot every matching account.
The bookshop prevents this with a salted hash. When Maya created her account, the server made a random value just for her, called a salt, and mixed it into her password before hashing. The salt is stored right next to the hash; it isn’t secret. Its job is to make every fingerprint unique. Maya’s sunflower2019 and her neighbour’s sunflower2019 now produce two unrelated hashes, so precomputed lists are useless and each account has to be attacked on its own.
Chapter 5: The breach
Two years later, the bookshop is hacked. The attackers copy the customer database and later post it online. Maya gets an email telling her to change her password.
What the attackers hold is a list of emails, salts and hashes. They can’t reverse a hash, so they do the only thing left: guess. They take lists of common passwords, words, names and dates, hash each guess with the right salt, and see if the result matches. Every guess that matches reveals a real password.
This is where Maya’s choice comes back to bite her. A word plus a year is one of the first patterns attackers try. If they crack sunflower2019, they won’t stop at the bookshop: they’ll try the same email and password on her email account and the other shops she uses. That’s called credential stuffing, and it’s why one leak can spread to many accounts.
Now picture a different Maya, who let a password manager create a long, random password just for the bookshop. The attackers can hash guesses all day; they’ll never stumble onto something like that. And even if they did, it would open nothing else. A strong, unique password is what keeps you safe when a site’s hashes leak, because you can’t control how well the site stored them. If this happens to you, our guide on what to do after a data breach walks through the next steps.
Chapter 6: Why slow is good
How fast the attackers can guess depends on which hash the bookshop used. And here’s the surprising part: for passwords, a slow hash is a good hash.
General-purpose hashes like MD5 and SHA-1 were designed to be fast, and modern graphics cards can try enormous numbers of guesses per second against them. MD5 and SHA-1 also have known weaknesses. Used alone, even with a salt, they are a poor choice for storing passwords.
Password hashing functions are built to be deliberately slow and expensive. bcrypt repeats its work many times. scrypt and Argon2 go further: they also need a lot of memory for each guess, which makes guessing on graphics cards or special hardware much costlier. Argon2 won the Password Hashing Competition and its variant Argon2id is widely recommended today. For Maya, the difference is invisible: checking her one password takes a fraction of a second. For an attacker trying millions of guesses, that small cost adds up to a huge wall. Current guidance, summed up in our NIST password guidelines summary, asks sites to use salted, slow hashing of exactly this kind.
Hash vs encryption: not the same thing
People often mix the two up. The key difference in hash vs encryption is that encryption is meant to be undone by whoever holds the key, while a hash is never meant to be undone at all.
| Hashing | Encryption | |
|---|---|---|
| Can be reversed? | No. It’s one-way; you can only compare fingerprints. | Yes, by anyone who has the right key. |
| Uses a key? | No secret key (a salt is mixed in, but it isn’t secret). | Yes. Without the key the data is unreadable. |
| Used for | Checking passwords at sign-in, checking files weren’t changed. | Keeping data you need to read again private, such as messages or a password vault. |
A website should hash your password, because it only ever needs to check it. A password manager has the opposite job: it must give your passwords back to you so it can fill them in, so it has to encrypt them. You can read more about that in how password managers protect you from data breaches.
Where PassHulk fits into Maya’s story
PassHulk uses both ideas in their right places. Your master password never leaves your device. On your device, PassHulk runs it through Argon2id, the slow, memory-hard function from Chapter 6, to make the key that unlocks your vault. Every item is then encrypted with AES-256-GCM before it’s sent, so the server only stores locked data that PassHulk staff can’t read.
PassHulk’s breach check also uses hashing to protect your privacy. To see whether a password appears in known leaks, it hashes the password on your device and sends only the first 5 characters of that hash. The lookup service returns a list of leaked hashes starting with those characters, and the match is checked on your device, so your password and its full hash never leave it. This approach is called k-anonymity. Vault health also points out weak and reused passwords like Maya’s, and the generator makes long, random ones in a click. See the details on the PassHulk features page.
Glossary
- Hash: a fixed-length fingerprint made from data by a one-way function. The same input always gives the same hash; the hash can’t be turned back into the input.
- Salt: a random value made for each account and mixed into the password before hashing, so identical passwords get different hashes. It’s stored openly next to the hash.
- Rainbow table: a precomputed list of hashes for common passwords. Salting makes these lists useless.
- Argon2id: a modern, slow, memory-hard password hashing function. bcrypt and scrypt are older but still solid choices; MD5 and SHA-1 alone are not.
- Credential stuffing: trying email and password pairs leaked from one site on many other sites. Unique passwords stop it.



