Argon2 hash generator and checker
Hash a password with Argon2id, or check a password against an Argon2 PHC string.
Runs in your browser. Your input is not uploaded.
Loading the tool…
What it does, how to use it, and questions
What it does
Argon2 is a password hash. Argon2id is the variant OWASP recommends: it resists both GPU cracking and side channels better than a fast hash. The PHC string stores the variant, the memory and time costs, the salt and the hash together.
Hashing runs in this page. Memory is capped at 64 MiB so a large setting cannot freeze the tab. The default is Argon2id with 19 MiB, 2 iterations and 1 lane.
How to use it
- Enter a password and generate. Copy the
$argon2id$string. - To check an existing hash, paste the PHC string and the password.
- Use the same memory, time and lanes on the server that will verify it.
Things to watch for
- The same password produces a different string every time because the salt is random. Check with the verifier, not by comparing strings.
- A hash made with more than 64 MiB of memory cannot be checked here. Check it where it was created.
- Argon2d is faster to attack with side channels. Use Argon2id unless you have a reason not to.
Questions
- Argon2 or bcrypt?
- Argon2id is the newer recommendation. bcrypt is still acceptable and is what htpasswd uses. Either is far better than MD5 or a plain SHA.
- What do m, t and p mean?
mis memory in kibibytes,tis the number of passes, andpis how many lanes run. 19456 KiB, t=2, p=1 matches OWASP’s Argon2id suggestion.- Why is memory capped?
- Argon2’s cost is the memory it allocates. Above 64 MiB this tab would stall. Raise it in your own program, not in a browser.
- Is the password uploaded?
- No. The hash is computed in this page.