T
THINKFORU
Submit Feedback

Argon2 Generator & Verifier: Argon2id, i & d

Argon2 Generator & Verifier: Argon2id, i & d
Argon2 Generator
● LOCAL ONLY
🔒 Zero Data Storage: All Argon2 hashing runs in your browser in plain JavaScript, and the Web Crypto API only generates random salts. Your password, salt and secret never leave your device. Read our Zero Data Storage Policy →
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

ConfigurationSample hashMemoryPasses / lanesGuidance
OWASP config 1$argon2id$v=19$m=47104,t=1,p=1$c29tZXNhbHQ$mRa4cHF5TrDndRc2drxh4Q62lv/kwubYJcXfuYkp4yc47,104 KiB (46 MiB)t=1, p=1OWASP minimum, memory-heavy choice (46 MiB). Never with Argon2i.
OWASP config 2 (primary)$argon2id$v=19$m=19456,t=2,p=1$c29tZXNhbHQ$PL01amPyeUuxG7H0vIr5X+qHkZvWnHmGBGXFYvh8z2E19,456 KiB (19 MiB)t=2, p=1OWASP headline recommendation (19 MiB). Never with Argon2i.
OWASP config 3$argon2id$v=19$m=12288,t=3,p=1$c29tZXNhbHQ$HrU+pbC1+Q398p3sccF7X1hHaaBGc1I7Hj8PGeIxjsY12,288 KiB (12 MiB)t=3, p=1OWASP minimum, 12 MiB with three passes.
OWASP config 4$argon2id$v=19$m=9216,t=4,p=1$c29tZXNhbHQ$LzgAvNWdBWQNbeCf4DBMXcFOVuWuEsF0rWGSv3JajXk9,216 KiB (9 MiB)t=4, p=1OWASP minimum, 9 MiB with four passes.
OWASP config 5$argon2id$v=19$m=7168,t=5,p=1$c29tZXNhbHQ$sAavOVT9lSsX4jeV2ZNRLaH3wKMRpC4uYGTwtpTA7JE7,168 KiB (7 MiB)t=5, p=1OWASP 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+zM065,536 KiB (64 MiB)t=3, p=4RFC 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 NameSample Argon2 HashUnderlying AlgorithmTechnical Specs / InputsOutput Length
1. RFC 9106 Test Vectors (Section 5, with secret and associated data)
RFC 9106 Argon2d512b391b6f1162975371d30919734294f868e3be3984f3c1a13a4db9fabe4acbArgon2d (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 Argon2ic814d9d1dc7f37aa13f0d77f2494bda1c8de6b016dd388d29952a4c4672b6ce8Argon2i (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 Argon2id0d640df58d78766c08c037a34a8b53c9d01ef0452d75b65eb52520e96b01e659Argon2id (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+dWRWJTmaaJObGArgon2i (v=19)Password "password"; Salt "somesalt"; m=65536 KiB, t=2, p=4, T=24 B; Output: Encoded string74 chars
README example, raw hash45d7ac72e76f242b20b77b9bf9bf9d5915894e669a24e6c6Argon2i (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$qLml5cbqFAO6YxVHhrSBHP0UWdxrIxkNcM8aMX3blzUArgon2id (v=19)Password "password"; Salt "somesalt"; m=4096 KiB, t=3, p=1, T=32 B; Output: Encoded string85 chars
Argon2i, m=4096 t=3 p=1$argon2i$v=19$m=4096,t=3,p=1$c29tZXNhbHQ$iWh06vD8Fy27wf9npn6FXWiCX4K6pW6Ue1Bnzz07Z8AArgon2i (v=19)Password "password"; Salt "somesalt"; m=4096 KiB, t=3, p=1, T=32 B; Output: Encoded string84 chars
Argon2d, m=4096 t=3 p=1$argon2d$v=19$m=4096,t=3,p=1$c29tZXNhbHQ$2+JCoQtY/2x5F0VB9pEVP3xBNguWP1T25Ui0PtZuk8oArgon2d (v=19)Password "password"; Salt "somesalt"; m=4096 KiB, t=3, p=1, T=32 B; Output: Encoded string84 chars
4. Parameter Sensitivity (Argon2id)
Lanes p=1, m=8192 t=2$argon2id$v=19$m=8192,t=2,p=1$c29tZXNhbHQ$pQ7IRfkMsUxGGo+RCyIPDLbbnN3T5YvcSjt8q11YDUIArgon2id (v=19)Password "password"; Salt "somesalt"; m=8192 KiB, t=2, p=1, T=32 B; more lanes change the hash even at equal memory85 chars
Lanes p=2, m=8192 t=2$argon2id$v=19$m=8192,t=2,p=2$c29tZXNhbHQ$0eg6pzg/cIc6FxtFMgagDaylNA81BVQuF7Qe1i07EQ4Argon2id (v=19)Password "password"; Salt "somesalt"; m=8192 KiB, t=2, p=2, T=32 B; more lanes change the hash even at equal memory85 chars
Lanes p=4, m=8192 t=2$argon2id$v=19$m=8192,t=2,p=4$c29tZXNhbHQ$FO4YhfgBrx2CxImNhcOQS7Qm6GhZlN+16jfFwSIgeyMArgon2id (v=19)Password "password"; Salt "somesalt"; m=8192 KiB, t=2, p=4, T=32 B; more lanes change the hash even at equal memory85 chars
Passes t=1, m=4096 p=1$argon2id$v=19$m=4096,t=1,p=1$c29tZXNhbHQ$yIW3jKhc46JgZ3FAcoGEowrd6vyP/WTSy/wUREAmlwcArgon2id (v=19)Password "password"; Salt "somesalt"; m=4096 KiB, t=1, p=1, T=32 B; each extra pass changes the hash85 chars
Passes t=2, m=4096 p=1$argon2id$v=19$m=4096,t=2,p=1$c29tZXNhbHQ$jacJHQ+PoBstB/ZoVNk8re3s1yzVABZujceGiwVNJnkArgon2id (v=19)Password "password"; Salt "somesalt"; m=4096 KiB, t=2, p=1, T=32 B; each extra pass changes the hash85 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$5yr8dXSYcZjcMH5jBzwNm0D84iQOKLGLOWsQeKUUHpEArgon2id (v=19)Password "password"; Salt "12345678" (8 B, the minimum allowed); m=4096 KiB, t=3, p=1, T=32 B; Output: Encoded string85 chars
Shortest tag (4 bytes)$argon2id$v=19$m=4096,t=3,p=1$c29tZXNhbHQ$JbqCAwArgon2id (v=19)Password "password"; Salt "somesalt"; m=4096 KiB, t=3, p=1, T=4 B; T=4 is the minimum output length48 chars
Long tag (128 bytes)$argon2id$v=19$m=4096,t=3,p=1$c29tZXNhbHQ$8xQuwDQePeLtvdrpdDAi8IBcich+mFnPVy+chDQ7D/rFXclIWny3SgVgfNLY55SG9d7a2pbvjFt7o8jDJRhPVKK6o2qJrGKnUFVUuDGE3xXaNs7gkhor/0e0RoY7zv+kaS+lfEEsi01hHwJos1FYcMchbC/jPn5E73tc+bzXy1gArgon2id (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-prime213 chars
Unicode password (UTF-8)$argon2id$v=19$m=4096,t=3,p=1$c29tZXNhbHQ$uky8I5JbRR5i05QffYEDJaoJ33Rcns1nwma7ODGVXU0Argon2id (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 string85 chars
Password with a NUL byte$argon2id$v=19$m=4096,t=3,p=1$c29tZXNhbHQ$Ck6AM54PRuvbMooegmDYUwze6fAZDrQAGMG9hb/j5ywArgon2id (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 string85 chars
Minimum memory (m=8)$argon2id$v=19$m=8,t=1,p=1$c29tZXNhbHQ$8Tf44YakA6Z5zNBgblq13Nr+Q8FkCFWsjG4z6b1j7rMArgon2id (v=19)Password "password"; Salt "somesalt"; m=8 KiB, t=1, p=1, T=32 B; m must be at least 8 x p82 chars

FAQ

What Argon2 parameters should I use?

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.