Pcornel
Security · Hashing

Argon2

Cheat sheet · https://pcornel.dk/topic.php?topic=4717

Back to the Topic

Answer

Argon2 (Argon2id) is the recommended modern password hashing algorithm. It is memory-hard and configurable in memory, time and parallelism, making GPU and ASIC cracking expensive.

Remember

  • Argon2id is memory-hard.
  • Tune memory, time and parallelism.
  • Use a unique salt per password.

First checks

  • python3 -c "from argon2 import PasswordHasher;print(PasswordHasher().hash('pw'))" — Argon2id hash
  • Parameters: memory, iterations, parallelism — OWASP minimums
  • argon2 <salt> -id -m 16 -t 3 -p 1 <<< pw — CLI test

Verify in this order

password + salt + m,t,p → Argon2id

Where it usually breaks

First mismatch in key/secret generation → storage/rotation → trust/certificate validation → protocol negotiation → cryptographic operation → peer/application verification; preserve identity/policy/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4717

Confirmation

Confirm action

Continue?