Argon2 Hash Generator
Argon2id is the OWASP-preferred password KDF because it spends memory as well as CPU. GPU and ASIC crackers hate large RAM allocations. Use it for new systems. Tune memory, iterations, and parallelism against your login latency budget rather than copying a blog's 2018 numbers.
Storing passwords in your own app? Check new ones the way NIST asks, in the browser and on your server: add the password field SDK.
What the Argon2 hash generator is for
Argon2 won the Password Hashing Competition and is OWASP's current first recommendation for storing passwords. Its advantage over bcrypt is that it is memory-hard: it deliberately consumes a configurable amount of RAM.
That matters because attackers use GPUs and custom hardware with thousands of cores but limited memory per core. Forcing each guess to occupy megabytes of RAM removes most of that parallel advantage.
Common uses
- Choosing password-storage parameters for a new application
- Comparing Argon2 variants and cost settings before standardising them
- Producing a test vector while implementing authentication
- Explaining memory-hard hashing in a security review
What the output means in the real world
The encoded string holds the variant, version, memory, time, lanes, salt, and digest. Persist that whole string. Verification needs the same parameters; they travel inside the encoding so you do not store them in a second column. Treat a leaked Argon2 string like a leaked password file: force resets for weak or reused secrets.
How this fits into real work
OWASP ASVS and the Password Storage Cheat Sheet put Argon2id first, then scrypt, then bcrypt. PBKDF2 remains for FIPS-only shops. Do not invent a homemade mix of SHA-256 rounds.
Memory-hardness is the point. A 19 MiB or higher setting (OWASP's recent minimums move; check the current cheat sheet) prices out cheap GPU farms that crush fast hashes. If your host OOMs, fix the host; do not drop to 1 MiB.
Migrating from bcrypt: verify the old hash on login, then write an Argon2id hash and delete the bcrypt string. Dual-hash forever is how stale bcrypt rows linger after a dump.
How to use this tool
- Enter a sample password — never a real one.
- Pick a variant. Argon2id is the right default; it combines the side-channel resistance of Argon2i with the GPU resistance of Argon2d.
- Set memory, iterations, and parallelism. OWASP suggests at least 19 MiB of memory with two iterations as a floor.
- Generate the hash and read the encoded string — it records every parameter, so verification needs nothing else stored.
Tips
- Tune memory first, then iterations. Memory is what actually blunts hardware attacks.
- Store the full encoded string. It carries the variant, parameters, and salt, which is what lets you raise the cost later without breaking old hashes.
- Re-hash a user's password at login when you increase parameters — that is the only moment you have the plaintext.
Privacy & how it works
Everything happens inside your browser. The values you type are held in page memory only, are never sent to a server, and disappear when you close the tab. You can confirm this in your browser's network tab: the only request a tool makes is one that names the tool for a usage count, with nothing you typed in it. The tools also work with the internet disconnected. Use sample values only; a real password should never be pasted into a browser tool.
Frequently asked questions
- Argon2i, Argon2d, or Argon2id?
- Argon2id unless you have a specific reason otherwise. It is the hybrid, and it is what OWASP and the RFC recommend as the default.
- What parameters are considered safe?
- OWASP's minimum is 19 MiB memory, 2 iterations, and parallelism of 1. Raise memory as far as your servers tolerate under peak login load.
- Should I migrate existing bcrypt hashes?
- There is no emergency. Migrate opportunistically: when a user next logs in successfully, re-hash their password with Argon2 and replace the stored value.
Browse other tools
All tools run entirely in your browser — nothing you type is sent to a server, except the optional HIBP 5-character hash prefix.