Sigra.Hashers.Argon2 (Sigra v1.20.0)

Copy Markdown View Source

Argon2id password hasher implementation.

Uses argon2_elixir which wraps the reference C implementation of Argon2id -- the OWASP-recommended password hashing algorithm. Argon2id is memory-hard and resistant to GPU/ASIC attacks.

Configuration

Argon2 parameters can be configured via application config:

config :argon2_elixir,
  t_cost: 3,
  m_cost: 16,
  parallelism: 2

For testing, use minimal cost parameters:

config :argon2_elixir, t_cost: 1, m_cost: 8