案例
验证 OpenSSL 生成的 Argon2id 口令
输入
correct horse battery stapleExpected answer
Match
Match
- 已编码哈希
$argon2id$v=19$m=1024,t=2,p=1$cHVibGljLWRlbW8tc2FsdA$xopcIYSeu4N6i+rjg7AxFvOXEbyK/YZMCfJFidUmBRY
只改动同一口令的一个大写字母
输入
Correct horse battery stapleExpected answer
No match
No match
- 已编码哈希
$argon2id$v=19$m=1024,t=2,p=1$cHVibGljLWRlbW8tc2FsdA$xopcIYSeu4N6i+rjg7AxFvOXEbyK/YZMCfJFidUmBRY
保留末尾空格的意义
输入
correct horse battery staple Expected answer
No match
No match
- 已编码哈希
$argon2id$v=19$m=1024,t=2,p=1$cHVibGljLWRlbW8tc2FsdA$xopcIYSeu4N6i+rjg7AxFvOXEbyK/YZMCfJFidUmBRY
用 Argon2i 校验 café
输入
caféExpected answer
Match
Match
- 已编码哈希
$argon2i$v=19$m=1024,t=2,p=1$cHVibGljLWRlbW8tc2FsdA$T4UGPz3nW1UQrrK140Th0Nwt8/YPK2+3L4uREHuJyqA
比较外观相同但字节不同的 Unicode
The candidate uses a separate combining accent; the fixture uses precomposed é.
输入
caféExpected answer
No match
No match
- 已编码哈希
$argon2i$v=19$m=1024,t=2,p=1$cHVibGljLWRlbW8tc2FsdA$T4UGPz3nW1UQrrK140Th0Nwt8/YPK2+3L4uREHuJyqA
区分损坏的哈希与错误密码
输入
public-exampleExpected rejection
Message containsInvalid or unsupported Argon2 encoded hash.- 已编码哈希
$argon2id$v=19$m=1024$broken
拒绝申请近 1 TiB 内存的哈希
输入
public-exampleExpected rejection
Message containsBrowser limit: Argon2 requires at most 64 MiB, 10 iterations, 4 lanes and 256 MiB-passes.- 已编码哈希
$argon2id$v=19$m=999999999,t=2,p=1$cHVibGljLWRlbW8tc2FsdA$xopcIYSeu4N6i+rjg7AxFvOXEbyK/YZMCfJFidUmBRY
Argon2 compare
Reproduce this published regression case and compare the exact result. Argon2 compare.
输入
argon2passwordExpected answer
Match
Match
- 已编码哈希
$argon2i$v=19$m=4096,t=3,p=1$c29tZXNhbHQ$s43my9eBljQADuF/LWCG8vGqwAJzOorKQ0Yog8jFvbw