Skip to content

Systemscape/argon2-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

argon2-cli

Generate Argon2 hashes from command line

Installation

cargo install --path .

Usage

echo -n "password" | argon2 somesalt

Options

argon2 [-h] salt [-i|-d|-id] [-t iterations] [-m log2(memory in KiB) | -k memory in KiB] [-p parallelism] [-l hash length] [-e|-r] [-v (10|13)]
  • -i Use Argon2i (default)
  • -d Use Argon2d
  • -id Use Argon2id
  • -t Number of iterations (default: 3)
  • -m Memory usage of 2^N KiB (default: 12)
  • -k Memory usage of N KiB (default: 4096)
  • -p Parallelism threads (default: 1)
  • -l Hash output length in bytes (default: 32)
  • -e Output only encoded hash
  • -r Output only raw bytes
  • -v Argon2 version (default: 13)

Examples

# Basic usage
echo -n "password" | argon2 somesalt

# Use Argon2id with custom parameters
echo -n "password" | argon2 somesalt -id -t 4 -m 16 -p 4

# Output only encoded hash
echo -n "password" | argon2 somesalt -e

License

MIT

About

Create argon2 hashes from a CLI

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages