Argon2id, scrypt, bcrypt and PBKDF2 parameters from current guidance, with which setting does the work and what each algorithm gets wrong.
Argon2id · 5 parameters
The first choice for new systems. It resists both GPU attacks, through memory cost, and the side-channel weakness of Argon2i.
Nothing is hashed on this page. You cannot verify a password against a hash made with somebody else’s parameters, so the only hash worth having is the one your own server produces — and typing a real password into a web page to see its hash is a habit worth not forming.
memory19 MiB (19456 KiB)The parameter that does the work. Memory is what makes parallel attacks on a GPU expensive, since each guess needs its own allocation.
iterations2Raise this only after memory is as high as the host can bear; memory buys more resistance per unit of time spent.
parallelism1Threads per hash. Keep it at 1 on a server handling concurrent sign-ins — raising it competes with the requests you are serving.
salt16 bytes, random per passwordStops one precomputed table covering every user. It is not secret and is stored alongside the hash.
output length32 bytesLonger gains nothing: the entropy ceiling is the password, not the digest.
Calibrate rather than copy. Time one hash on the hardware that will run it and raise the cost until a sign-in takes as long as you can tolerate — roughly 250 to 500 milliseconds is a common ceiling for an interactive login. The same parameters are twice as weak on next year’s hardware, which is why the algorithm and its settings are stored beside each hash.
No password is accepted and no hash is computed here — this page holds no input field for one by design. Use your language’s maintained library rather than implementing any of these yourself: in Node, argon2 or bcrypt; in Python, argon2-cffi or passlib; in PHP, password_hash with PASSWORD_ARGON2ID.
These parameters follow current OWASP guidance at the time of writing and guidance moves. They are also only the storage half of the problem: rate limiting, credential-stuffing defences, breach-list checks and multi-factor authentication all matter more to a real system than the difference between two reasonable cost settings. Check the current OWASP Password Storage Cheat Sheet before you commit to numbers.
Password Hashing Reference runs entirely on your device — this is static reference material and no password is ever requested, hashed or transmitted.
You’re on the Free plan. Compare plans
This page deliberately does not hash anything. A tool that accepted a password and returned its Argon2 hash would be asking people to type real passwords into a web page, and the output would be useless anyway: you cannot verify against a hash produced by somebody else's parameters, and the hash you want is the one your own server produces.
In Argon2id, memory is the parameter that matters. Iterations buy less resistance per unit of time spent, because memory is what makes a massively parallel GPU attack expensive — each guess needs its own allocation. Raising iterations before memory is as high as the host can bear is the common misconfiguration.
bcrypt truncates at 72 bytes, silently. Everything past that is ignored, which turns a long passphrase into a shorter one and breaks the usual assumption that longer is always better. It is also why a pre-hash step appears in some bcrypt implementations, and why that step has its own pitfalls.
Because it would require typing a real password into a web page, and the result would be unusable: verification only works against a hash produced with your own parameters by your own server. The parameters are the useful part.
Argon2id for a new system. scrypt is a reasonable alternative, bcrypt is acceptable and widely available, and PBKDF2 is for when a policy or a platform requires it — it resists GPU attacks least of the four.
No. They are a starting point. The right cost is the highest your slowest sign-in path can absorb, which depends on your hardware and your traffic — and the same numbers are weaker every year.
bcrypt ignores everything past 72 bytes of input. A long passphrase is silently truncated, so a password manager's 100-character output is no stronger than its first 72 bytes under bcrypt.
No. Rate limiting, credential-stuffing defences, breach-list checks and multi-factor authentication all matter more to a real system than the difference between two reasonable cost settings.
If a tool here saved you some time, you can put something towards the hosting.Buy me a coffee, on Ko-fi, opens in a new tab