Online Argon2 hash & verify

Argon2 turns a password into a PHC string that starts with $argon2id$, $argon2i$, or $argon2d$, then v=19, then m=, t=, and p= parameters, then base64 salt and hash segments. Hash mode picks variant, memory in KiB, iteration count t, and parallelism p; defaults here are argon2id with 65536 KiB, t=3, and p=4. Verify mode takes the password and the full stored string and reports match, no match, or invalid format; m, t, and p are read from the hash, not from the sliders. The same password hashed twice yields two different strings because the salt is new each time. Argon2 is for password storage, not for file checksums. For $2a$ lines use bcrypt; for iteration-only stretching with a separate salt field use PBKDF2.

What Argon2 packs into a PHC string when variant, memory, time, and lanes are chosen

Argon2 turns a password into a single printable PHC line. The password is the UTF-8 bytes of the text that was typed. The line names the variant after the first dollar block, then v=19 for the Argon2 version, then m=, t=, and p= for memory in KiB, time iterations, and parallel lanes, then two URL-safe Base64 segments for salt and digest separated by another dollar sign.

A typical fresh hash on this page looks like $argon2id$v=19$m=65536,t=3,p=4$ followed by salt and hash segments. Defaults are argon2id, 65536 KiB memory, t=3 iterations, and p=4 lanes. Hashing the same password twice never yields the same line because a new random salt is drawn each time. Only compare against one full stored line can confirm a password.

Password storage also uses bcrypt with embedded cost and slow PBKDF2 with iteration counts beside the salt. A single fast digest without salt belongs under hash digest. Human-chosen secrets are easier to reason about with a password generator before they are hashed.

How variant, v=19, m, t, p, salt, and digest fit one hash or verify step

Why argon2id, argon2i, and argon2d label three tradeoffs inside the same PHC layout

  1. argon2id is the hybrid default here and the variant most new password hashes should use. The prefix in the stored line reads $argon2id$ when that mode is chosen.
  2. argon2i favors side-channel resistance because addresses depend less on the password. argon2d favors resistance to time-memory tradeoff attacks when memory is large.
  3. All three share v=19 and the same m=, t=, p= comma layout. Verify libraries read the variant from the string; the dropdown only affects newly generated lines.

Why memory m is counted in KiB inside the hash and why 65536 is the default here

  1. The m= field in $argon2id$v=19$m=65536,t=3,p=4$ names 65536 KiB, which is 64 MiB of working memory for the hash function during hashing.
  2. Higher memory makes each guess cost more RAM on offline attackers with parallel GPUs. This page allows memory from 8 KiB up through 524288 KiB within clamp rules.
  3. The memory value is part of the stored string. Verify reads the same m= digits that were used when the hash was created, not the slider position during verify.

Why time t and parallelism p sit beside m and scale work per password attempt

  1. t=3 means three passes over memory according to Argon2 rules. p=4 means up to four parallel lanes inside one hash computation on this page.
  2. Raising t multiplies CPU time for honest logins and for offline guessing. Raising p uses more cores but must stay consistent between hash and verify for the same line.
  3. Defaults t=3 and p=4 match common starter profiles. Changing them on the form only affects new PHC output. An old line still carries its own t= and p= inside the dollar block.

Why verification must paste the entire PHC line including every parameter byte

  1. Verify parses variant, v=19, m, t, p, salt, and digest from the hash field. A truncated copy without $argon2id$ or without the parameter block is invalid input.
  2. The regular shape is dollar, variant name, dollar, v=19, dollar, m=number, comma, t=number, comma, p=number, dollar, then Base64 salt, dollar, then Base64 digest.
  3. Matching means the password bytes pair with that full string. m, t, and p are not re-read from the sliders during verify; they are taken from the pasted hash alone.

Where the stored PHC line and the typed password quietly disagree

The same short password hashed twice at argon2id with default m, t, and p

Run hash twice on the word password with argon2id, 65536 KiB, t=3, and p=4. Both lines begin with $argon2id$v=19$m=65536,t=3,p=4$ and name the same parameters. The Base64 salt and digest segments differ because salt is new each time. A test that expected identical strings is misunderstanding Argon2. Verification still accepts either line when the password field holds password and the hash field holds the matching full PHC string.

A verify attempt that changed memory on the slider but kept an old hash

An existing row might read $argon2id$v=19$m=131072,t=3,p=4$ while the slider still shows 65536 KiB. Verify mode ignores the slider for m, t, and p and follows the pasted line. Expecting verify to use 65536 when the hash says 131072 is a common debugging mistake. Production compares password against the database copy. Parameter tuning on the form affects only the next hash action.

A login stack that still stores bcrypt while evaluating Argon2 for new accounts

bcrypt lines start with $2a$ or $2b$ and encode cost in two digits, not m and t in KiB. PBKDF2 often stores iterations beside a separate salt column rather than one self-contained PHC line. Argon2 unifies variant, memory, time, lanes, salt, and digest in one field. hash digest pages cover unsalted one-shot digests. Policy may keep bcrypt for legacy rows and Argon2 for new registrations without mixing formats in one column.

Common questions

What does an Argon2 hash look like on this page?
Expect a PHC string starting with $argon2id$, $argon2i$, or $argon2d$, then $v=19$, then $m=65536,t=3,p=4$ or similar numbers, then Base64 salt, then Base64 digest. Default generation uses $argon2id$v=19$m=65536,t=3,p=4$ as the parameter header before random salt. Copy the entire line into a database or verify field. Spaces or line breaks inside the string break parsing.
What is the difference between argon2id, argon2i, and argon2d?
argon2id mixes side-channel hardening with resistance to time-memory tradeoffs and is the recommended default here. argon2i makes memory access depend less on secret data, which helps against some side channels. argon2d makes the memory pattern depend more on the password, which can help against TMTO when memory is high. All three encode the choice in the prefix of the PHC line after the first dollar sign.
Why is memory expressed in KiB in the m= field?
The PHC format records memory cost as an integer count of kibibytes in m=. The default 65536 means 65536 KiB or 64 MiB of memory used during hashing. Offline attackers must allocate similar memory per guess, which GPUs cannot always do cheaply. The number is not bits and not bytes; it is always KiB in Argon2 PHC strings on this page and in most libraries.
What do t=3 and p=4 mean in the parameter block?
t names the time cost, the number of iterations over the memory matrix according to the Argon2 specification. p names parallelism, how many lanes may run together inside one hash on multi-core hardware. Defaults t=3 and p=4 are a common balanced starter point on this page. Higher t slows every verify call. Higher p can use more CPU cores but must match what was used when the hash was created.
Why do two hashes of the same password never match?
Argon2 draws a fresh random salt for every hash call, usually sixteen bytes encoded in the first Base64 segment after the parameter block. Equal passwords still produce unrelated PHC strings because salt and digest both change. That behavior blocks rainbow tables built for one salt. Verification compares one candidate password against one specific stored line; it does not expect two registrations to share the same bytes.
How do I verify a password against a database hash?
Choose verify mode, type the plaintext password, and paste the full PHC hash from the database including the variant prefix, v=19, and the entire m=, t=, p= block with both Base64 segments. The tool reports match, no match, or invalid format. Partial strings fail as invalid. The password must be the same bytes the user typed at registration, including case and any trailing newline if the app kept it.
How is Argon2 different from bcrypt or PBKDF2?
Bcrypt packs cost and salt into about sixty characters starting with $2a$ and scales mainly through cost digits, not explicit memory KiB. PBKDF2 stretches with HMAC iterations and often stores salt and iteration count beside the derived hex or Base64 output. Argon2 is memory-hard, encodes memory, time, and lanes in one PHC line, and is the winner of the Password Hashing Competition. See bcrypt and PBKDF2 for those formats.
Can Argon2 output be reversed into the password?
No. The PHC line is a one-way encoding tuned for password checking. Attackers guess passwords and run verify; they do not decode the Base64 digest back to text. Stronger m and t only make each guess slower and more memory hungry. Good passwords still matter; Argon2 does not remove the need for entropy. A password generator helps when humans pick secrets.
Does changing m, t, or p on the form rewrite an old hash?
No. The parameter block inside an existing string is part of what verify reads. Moving memory to 131072 KiB before hashing creates new lines with m=131072, but an old m=65536 row still verifies with 65536 baked in. Rehashing at login is how apps upgrade users when policy raises memory or time costs.