2025-03-14 21:59:59 -06:00
|
|
|
# argon2
|
|
|
|
|
|
|
|
|
|
> Calculate Argon2 cryptographic hashes.
|
|
|
|
|
> More information: <https://github.com/P-H-C/phc-winner-argon2#command-line-utility>.
|
|
|
|
|
|
|
|
|
|
- Calculate a hash with a password and a salt with the default parameters:
|
|
|
|
|
|
|
|
|
|
`echo "{{password}}" | argon2 "{{salt_text}}"`
|
|
|
|
|
|
|
|
|
|
- Calculate a hash with the specified algorithm:
|
|
|
|
|
|
|
|
|
|
`echo "{{password}}" | argon2 "{{salt_text}}" -{{d|i|id}}`
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
- Display the output [e]ncoded hash without additional information:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
`echo "{{password}}" | argon2 "{{salt_text}}" -e`
|
|
|
|
|
|
|
|
|
|
- Calculate a hash with given iteration [t]imes, [m]emory usage, and [p]arallelism parameters:
|
|
|
|
|
|
|
|
|
|
`echo "{{password}}" | argon2 "{{salt_text}}" -t {{5}} -m {{20}} -p {{7}}`
|