Argon2:一种用于密码哈希(password hashing)与密钥派生(KDF)的算法,特点是内存硬(memory-hard)、可调参数(时间成本、内存成本、并行度),旨在提高对暴力破解、GPU/ASIC 并行攻击的抵抗力。常用于安全地存储用户密码的哈希值。(另有不同变体如 Argon2id、Argon2i、Argon2d。)
/ˈɑːrɡɒn tuː/
Argon2 is used to hash passwords securely.
Argon2 用于安全地对密码进行哈希处理。
To reduce the risk of offline cracking, the developer chose Argon2id with a higher memory cost and tuned parameters for the production server.
为降低离线破解风险,开发者选择了 Argon2id 并提高内存成本,同时为生产服务器调优了相关参数。
“Argon2”是算法名称,其中“Argon”原指“氩”(一种惰性气体),常被理解为强调“惰性/稳定”的意象;“2”表示第二代/版本。Argon2 由研究团队在 Password Hashing Competition(密码哈希竞赛,PHC) 中提出并于 2015 年获胜,随后在安全工程实践与标准文档中被广泛采用。