argon2
Hash passwords using the Argon2 algorithm
TLDR
Hash a password
SYNOPSIS
argon2 salt [-d|-i|-id] [-t iterations] [-m memory] [-p parallelism] [-l length] [-e|-r]
DESCRIPTION
argon2 is a command-line tool for the Argon2 password hashing algorithm, winner of the Password Hashing Competition in 2015. It provides strong, memory-hard password hashing resistant to GPU and ASIC attacks.
The tool supports Argon2d (data-dependent), Argon2i (data-independent), and Argon2id (hybrid) variants.
PARAMETERS
-d
Use Argon2d (faster, GPU-resistant)-i
Use Argon2i (side-channel resistant)-id
Use Argon2id (recommended, hybrid)-t n
Time cost (iterations)-m n
Memory cost (2^n KiB)-p n
Parallelism (threads)-l n
Output length in bytes-e
Output encoded hash-r
Output raw hash bytes-v
Verbose output
CAVEATS
Salt must be provided and should be random. Higher memory/time costs improve security but increase computation time. Argon2id is recommended for most uses.
HISTORY
Argon2 was designed by Alex Biryukov, Daniel Dinu, and Dmitry Khovratovich, winning the Password Hashing Competition in 2015. It's recommended by OWASP for password hashing.
