Password security and hashing: what actually protects accounts in 2026
TL;DR. Users should pick long, unique secrets and keep them in a password manager, with a phishing-resistant second factor where it is offered. Applications should never store passwords in reversible form. They should hash them with a modern, slow, memory-hard algorithm such as Argon2id (or, where that is not yet available, a well-configured bcrypt or scrypt), using a unique salt per credential. This article explains those choices and the operational habits around them. It is not a guide to cracking other people’s passwords or to building wordlists.
Two jobs that are often confused
Protecting an account you use is about uniqueness, length, a manager, and a second factor. Protecting a password you store is about hashing, salting, and never logging the secret. A beautiful login page does not help if the database keeps passwords in plain text. A strong hash does not help if the user reused the same secret on a leaked site and your application has no second factor.
Treat the two jobs separately, then make them meet at login: the user presents a secret the manager remembered; the server compares it to a stored hash with a function that is expensive for attackers who stole a dump and cheap enough for legitimate logins.
What users and teams can do this week
- Use a password manager for new accounts and, gradually, for old ones. The manager’s random generator is better than a memorable pattern.
- One secret per service. Reuse is how a breach of an unrelated site becomes a breach of yours.
- Prefer passkeys or another phishing-resistant factor when the service offers them. A one-time code in a message can still be relayed; a device-bound passkey is harder to phish.
- Lock the manager itself with a strong master secret and, where available, a device factor. Back up the vault with the vendor’s documented method, not a screenshot of passwords.
- At work, forbid shared “team passwords” in chat. If a shared secret is unavoidable, put it in a dedicated secrets store, rotate it when someone leaves, and log its use.
None of this requires you to understand cryptography in depth. It does require you to stop improvising storage.
How storage is supposed to work
When a user sets a password, the application should:
- Enforce a reasonable length policy (long enough to be unique and unguessable, not a theatre of special-character puzzles that drive people to reuse a short favourite).
- Generate a unique salt — random data that is stored next to the hash and is different for every credential.
- Run a modern password-hashing function with parameters that cost a non-trivial amount of time and memory on current hardware.
- Store only the algorithm identifier, the parameters, the salt and the hash. Never the password, never a reversible encryption of the password “so we can email it back.”
- On login, hash the offered secret with the same parameters and compare in a way that does not leak timing in a naïve byte-by-byte loop — use the comparison helper your library documents.
Salt defeats “one hash for this popular password across the whole database.” Slowness and memory cost make a stolen dump expensive to search even after a breach. Uniqueness of parameters per user keeps a cheap default from applying to everyone if you later raise the cost and migrate lazily.
Algorithms, in practical terms
| Approach | Still appropriate in 2026? | Notes for implementers |
|---|---|---|
| Plain text or reversible encryption | Never | A database leak becomes an immediate credential leak |
| Unsalted MD5, SHA-1 or a single fast SHA-256 | No | Fast hashes were designed for integrity, not for password storage |
| PBKDF2 with a high iteration count | Legacy only, if you must interoperate | Prefer migrating to Argon2id when you can |
| bcrypt with a modern cost factor | Acceptable where Argon2 is not yet available | Mind the length limits of the specific library; keep the cost under review |
| scrypt | Acceptable when configured by people who have read the current guidance | Memory-hard; do not invent parameters |
| Argon2id with current recommended parameters | Preferred default for new systems | Follow current OWASP or library guidance; store the parameters with the hash so you can raise them later |
Do not write your own mixing function “on top of SHA.” Use a maintained library, keep it updated, and plan a migration path so that an old hash is upgraded on the next successful login.
Operational failures that beat a good hash
- Logging the password in a debug line, a support ticket, or a full request dump.
- Sending the password in an email welcome message.
- Storing hints that are the password in another field.
- Truncating the secret before hashing because of an unnoticed library limit.
- Leaving default credentials on an admin panel.
- Hashing on the client and sending only the hash, which then becomes the password from the server’s point of view.
- Ignoring breach notifications and credential-stuffing attempts because “we hash, so we are fine.”
Hashing protects a stolen database. It does not protect a phishing page, a reused password, or a support process that reads secrets aloud.
If you think a database was stolen
This is an incident, not a cryptography puzzle. Rotate exposed secrets, force a careful password reset, review logs for later logins, and tell users in plain language. Do not ask them to email you the old password “to confirm.” If hashes were weak or unsalted, say that the risk is higher and push a second factor. Keep forensic copies according to your incident plan — the companion article on incident response covers the first day.
When you write an internal explanation, keep sample hashes and user tables out of chat tools. SiberAI can help you draft a clear user notice from a bullet list; it should not receive a slice of the credential table. See the security notes before pasting anything that looks like a dump, and use the quickstart only if you already have a workspace for writing.
Key takeaways
- Unique, long secrets in a manager, plus a phishing-resistant factor, are the user side of the story.
- Store passwords only as salted, slow, modern hashes; Argon2id is the usual preferred choice for new work.
- Fast checksums and reversible storage are not password protection.
- Logging, reuse, default accounts and phishing will defeat a correct hash.
- Plan how you will raise cost parameters and how you will talk to users after a dump.
Last updated: November 2026.
FAQ
Q: Is a 16-character generated password better than a long phrase I invented?
A: A unique generated secret stored in a manager is the more reliable habit. A long phrase can be strong if it is unique and truly unguessable, but people tend to reuse and slightly modify phrases.
Q: Should we still require uppercase, numbers and symbols?
A: Composition theatre often produces worse passwords. Prefer a minimum length, a check against very common passwords, and a manager with a generator. Follow current guidance from your standards body when you must formalise a policy.
Q: Can we hash on the browser so the server never sees the password?
A: Not as a substitute for TLS and server-side hashing. If the browser hash is what the server stores, theft of that value is enough to log in. There are specialist protocols for this problem; do not improvise them.
Q: How often should users be forced to change passwords?
A: Regular forced changes often lead to rotation by one character. Change on evidence of compromise, when a role changes, and when a secret may have been exposed. Prefer a second factor over a calendar ritual.
Q: Is it safe to store hashes in a documentation example?
A: Use fictional users and obviously fake strings. Real hashes from a production or even a staging dump do not belong in tickets or training slides.
Q: What about security questions?
A: They are usually poor secrets (answers appear in public records) and should not be used as a back door around a password. Prefer a documented reset that proves control of an already enrolled factor.
Q: Do passkeys replace hashing?
A: Passkeys change the authenticator model: the server stores a public key, not a password hash. They are worth offering. Until every user has one, you will still be hashing passwords for the remaining accounts — and doing it properly still matters.
Yorumlar
Yorum Gönder