Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

25
argon2 Normal file
View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# 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}}`
- Display the output hash without additional information:
`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}}`