Advanced: secret (pepper), associated data and input format
Inputs are stored after the # in the link, which browsers do not send to the server. By default the password and secret are left out, so share them separately. Hashing runs in your browser and larger memory settings take longer on phones.
Modern Security & Hashing Utilities
Argon2 Parameter Reference
| Configuration | Sample hash | Memory | Passes / lanes | Guidance |
|---|---|---|---|---|
| OWASP config 1 | $argon2id$v=19$m=47104,t=1,p=1$c29tZXNhbHQ$mRa4cHF5TrDndRc2drxh4Q62lv/kwubYJcXfuYkp4yc | 47,104 KiB (46 MiB) | t=1, p=1 | OWASP minimum, memory-heavy choice (46 MiB). Never with Argon2i. |
| OWASP config 2 (primary) | $argon2id$v=19$m=19456,t=2,p=1$c29tZXNhbHQ$PL01amPyeUuxG7H0vIr5X+qHkZvWnHmGBGXFYvh8z2E | 19,456 KiB (19 MiB) | t=2, p=1 | OWASP headline recommendation (19 MiB). Never with Argon2i. |
| OWASP config 3 | $argon2id$v=19$m=12288,t=3,p=1$c29tZXNhbHQ$HrU+pbC1+Q398p3sccF7X1hHaaBGc1I7Hj8PGeIxjsY | 12,288 KiB (12 MiB) | t=3, p=1 | OWASP minimum, 12 MiB with three passes. |
| OWASP config 4 | $argon2id$v=19$m=9216,t=4,p=1$c29tZXNhbHQ$LzgAvNWdBWQNbeCf4DBMXcFOVuWuEsF0rWGSv3JajXk | 9,216 KiB (9 MiB) | t=4, p=1 | OWASP minimum, 9 MiB with four passes. |
| OWASP config 5 | $argon2id$v=19$m=7168,t=5,p=1$c29tZXNhbHQ$sAavOVT9lSsX4jeV2ZNRLaH3wKMRpC4uYGTwtpTA7JE | 7,168 KiB (7 MiB) | t=5, p=1 | OWASP minimum, 7 MiB with five passes. Lowest memory. |
| RFC 9106 second option | $argon2id$v=19$m=65536,t=3,p=4$c29tZXNhbHQ$Zh/vvW8pvLyPRkarwyqdekZFu1wFlTf4pVh/Ma2+zM0 | 65,536 KiB (64 MiB) | t=3, p=4 | RFC 9106 fallback for memory-constrained servers (64 MiB). Its first option needs 2 GiB. |
Sample inputs for all rows: Argon2id, password password salt somesalt 32-byte hash, encoded as a PHC string. OWASP lists Argon2id first for password storage. Use a unique random salt of 16 bytes or more per password.
Argon2 Test Vector Dataset (19 Vectors & Standards)
RFC 9106 official vectors, the reference implementation example, variant and parameter comparisons and edge cases. Click Copy next to any hash, then enter the same inputs in the tool above to verify your own implementation. All values come from the Argon2 reference library and the RFC vectors match the published tags.
| Identifier / Standard Name | Sample Argon2 Hash | Underlying Algorithm | Technical Specs / Inputs | Output Length |
|---|---|---|---|---|
| 1. RFC 9106 Test Vectors (Section 5, with secret and associated data) | ||||
| RFC 9106 Argon2d | 512b391b6f1162975371d30919734294f868e3be3984f3c1a13a4db9fabe4acb | Argon2d (v=19) | Set "Format of password, secret and data" and "Salt format" to Hex. Password hex 0101010101010101010101010101010101010101010101010101010101010101 (32 B); Salt hex 02020202020202020202020202020202 (16 B); Secret hex 0303030303030303 (8 B); Associated data hex 040404040404040404040404 (12 B); m=32 KiB, t=3, p=4, T=32 B; Output: Raw hash (Hex) | 64 chars |
| RFC 9106 Argon2i | c814d9d1dc7f37aa13f0d77f2494bda1c8de6b016dd388d29952a4c4672b6ce8 | Argon2i (v=19) | Set "Format of password, secret and data" and "Salt format" to Hex. Password hex 0101010101010101010101010101010101010101010101010101010101010101 (32 B); Salt hex 02020202020202020202020202020202 (16 B); Secret hex 0303030303030303 (8 B); Associated data hex 040404040404040404040404 (12 B); m=32 KiB, t=3, p=4, T=32 B; Output: Raw hash (Hex) | 64 chars |
| RFC 9106 Argon2id | 0d640df58d78766c08c037a34a8b53c9d01ef0452d75b65eb52520e96b01e659 | Argon2id (v=19) | Set "Format of password, secret and data" and "Salt format" to Hex. Password hex 0101010101010101010101010101010101010101010101010101010101010101 (32 B); Salt hex 02020202020202020202020202020202 (16 B); Secret hex 0303030303030303 (8 B); Associated data hex 040404040404040404040404 (12 B); m=32 KiB, t=3, p=4, T=32 B; Output: Raw hash (Hex) | 64 chars |
| 2. Reference Implementation Example (phc-winner-argon2 README) | ||||
| README example, encoded | $argon2i$v=19$m=65536,t=2,p=4$c29tZXNhbHQ$RdescudvJCsgt3ub+b+dWRWJTmaaJObG | Argon2i (v=19) | Password "password"; Salt "somesalt"; m=65536 KiB, t=2, p=4, T=24 B; Output: Encoded string | 74 chars |
| README example, raw hash | 45d7ac72e76f242b20b77b9bf9bf9d5915894e669a24e6c6 | Argon2i (v=19) | Password "password"; Salt "somesalt"; m=65536 KiB, t=2, p=4, T=24 B; Output: Raw hash (Hex) | 48 chars |
| 3. The Three Variants (same inputs) | ||||
| Argon2id, m=4096 t=3 p=1 | $argon2id$v=19$m=4096,t=3,p=1$c29tZXNhbHQ$qLml5cbqFAO6YxVHhrSBHP0UWdxrIxkNcM8aMX3blzU | Argon2id (v=19) | Password "password"; Salt "somesalt"; m=4096 KiB, t=3, p=1, T=32 B; Output: Encoded string | 85 chars |
| Argon2i, m=4096 t=3 p=1 | $argon2i$v=19$m=4096,t=3,p=1$c29tZXNhbHQ$iWh06vD8Fy27wf9npn6FXWiCX4K6pW6Ue1Bnzz07Z8A | Argon2i (v=19) | Password "password"; Salt "somesalt"; m=4096 KiB, t=3, p=1, T=32 B; Output: Encoded string | 84 chars |
| Argon2d, m=4096 t=3 p=1 | $argon2d$v=19$m=4096,t=3,p=1$c29tZXNhbHQ$2+JCoQtY/2x5F0VB9pEVP3xBNguWP1T25Ui0PtZuk8o | Argon2d (v=19) | Password "password"; Salt "somesalt"; m=4096 KiB, t=3, p=1, T=32 B; Output: Encoded string | 84 chars |
| 4. Parameter Sensitivity (Argon2id) | ||||
| Lanes p=1, m=8192 t=2 | $argon2id$v=19$m=8192,t=2,p=1$c29tZXNhbHQ$pQ7IRfkMsUxGGo+RCyIPDLbbnN3T5YvcSjt8q11YDUI | Argon2id (v=19) | Password "password"; Salt "somesalt"; m=8192 KiB, t=2, p=1, T=32 B; more lanes change the hash even at equal memory | 85 chars |
| Lanes p=2, m=8192 t=2 | $argon2id$v=19$m=8192,t=2,p=2$c29tZXNhbHQ$0eg6pzg/cIc6FxtFMgagDaylNA81BVQuF7Qe1i07EQ4 | Argon2id (v=19) | Password "password"; Salt "somesalt"; m=8192 KiB, t=2, p=2, T=32 B; more lanes change the hash even at equal memory | 85 chars |
| Lanes p=4, m=8192 t=2 | $argon2id$v=19$m=8192,t=2,p=4$c29tZXNhbHQ$FO4YhfgBrx2CxImNhcOQS7Qm6GhZlN+16jfFwSIgeyM | Argon2id (v=19) | Password "password"; Salt "somesalt"; m=8192 KiB, t=2, p=4, T=32 B; more lanes change the hash even at equal memory | 85 chars |
| Passes t=1, m=4096 p=1 | $argon2id$v=19$m=4096,t=1,p=1$c29tZXNhbHQ$yIW3jKhc46JgZ3FAcoGEowrd6vyP/WTSy/wUREAmlwc | Argon2id (v=19) | Password "password"; Salt "somesalt"; m=4096 KiB, t=1, p=1, T=32 B; each extra pass changes the hash | 85 chars |
| Passes t=2, m=4096 p=1 | $argon2id$v=19$m=4096,t=2,p=1$c29tZXNhbHQ$jacJHQ+PoBstB/ZoVNk8re3s1yzVABZujceGiwVNJnk | Argon2id (v=19) | Password "password"; Salt "somesalt"; m=4096 KiB, t=2, p=1, T=32 B; each extra pass changes the hash | 85 chars |
| 5. Edge Cases (Argon2id, m=4096, t=3, p=1 unless noted) | ||||
| Minimum salt (8 bytes) | $argon2id$v=19$m=4096,t=3,p=1$MTIzNDU2Nzg$5yr8dXSYcZjcMH5jBzwNm0D84iQOKLGLOWsQeKUUHpE | Argon2id (v=19) | Password "password"; Salt "12345678" (8 B, the minimum allowed); m=4096 KiB, t=3, p=1, T=32 B; Output: Encoded string | 85 chars |
| Shortest tag (4 bytes) | $argon2id$v=19$m=4096,t=3,p=1$c29tZXNhbHQ$JbqCAw | Argon2id (v=19) | Password "password"; Salt "somesalt"; m=4096 KiB, t=3, p=1, T=4 B; T=4 is the minimum output length | 48 chars |
| Long tag (128 bytes) | $argon2id$v=19$m=4096,t=3,p=1$c29tZXNhbHQ$8xQuwDQePeLtvdrpdDAi8IBcich+mFnPVy+chDQ7D/rFXclIWny3SgVgfNLY55SG9d7a2pbvjFt7o8jDJRhPVKK6o2qJrGKnUFVUuDGE3xXaNs7gkhor/0e0RoY7zv+kaS+lfEEsi01hHwJos1FYcMchbC/jPn5E73tc+bzXy1g | Argon2id (v=19) | Password "password"; Salt "somesalt"; m=4096 KiB, t=3, p=1, T=128 B; tags over 64 B use the variable-length hash H-prime | 213 chars |
| Unicode password (UTF-8) | $argon2id$v=19$m=4096,t=3,p=1$c29tZXNhbHQ$uky8I5JbRR5i05QffYEDJaoJ33Rcns1nwma7ODGVXU0 | Argon2id (v=19) | Password "passw-umlauts-accents" UTF-8 encoded (14 B); Salt "somesalt"; m=4096 KiB, t=3, p=1, T=32 B; Output: Encoded string | 85 chars |
| Password with a NUL byte | $argon2id$v=19$m=4096,t=3,p=1$c29tZXNhbHQ$Ck6AM54PRuvbMooegmDYUwze6fAZDrQAGMG9hb/j5yw | Argon2id (v=19) | Password hex 7061737300776f7264 (9 B incl. NUL; set the data format to Hex); Salt "somesalt"; m=4096 KiB, t=3, p=1, T=32 B; Output: Encoded string | 85 chars |
| Minimum memory (m=8) | $argon2id$v=19$m=8,t=1,p=1$c29tZXNhbHQ$8Tf44YakA6Z5zNBgblq13Nr+Q8FkCFWsjG4z6b1j7rM | Argon2id (v=19) | Password "password"; Salt "somesalt"; m=8 KiB, t=1, p=1, T=32 B; m must be at least 8 x p | 82 chars |
FAQ
OWASP recommends Argon2id with at least 19 MiB of memory (m=19456), 2 iterations (t=2) and 1 lane (p=1). Equivalent minimums trade memory for time: 46 MiB with t=1, 12 MiB with t=3, 9 MiB with t=4 or 7 MiB with t=5. Benchmark on your own server and tune so that one hash takes well under a second at your peak login load.
Argon2id, Argon2i or Argon2d: which variant should I choose?Choose Argon2id. It runs the first half of the first pass with data-independent memory access, which resists side-channel attacks, and the rest data-dependent, which resists GPU and time-memory trade-off attacks. Both OWASP and RFC 9106 recommend it for password hashing. Argon2d is only for settings without side-channel risk and Argon2i trades GPU resistance for side-channel resistance.
Why does the encoded Argon2 hash change every time, and what does it contain?Each hash uses a fresh random salt, and the PHC string $argon2id$v=19$m=19456,t=2,p=1$salt$hash stores the variant, version, memory, passes, lanes, salt and tag, so a verifier can recompute with the same settings. A secret (pepper) and associated data are not stored in the string and must be supplied again when verifying.