4 releases
0.2.0 | Nov 27, 2024 |
---|---|
0.1.3 | Nov 27, 2024 |
0.1.2 | Jun 25, 2024 |
0.1.1 | Jun 24, 2024 |
0.1.0 |
|
#360 in Cryptography
285 downloads per month
7KB
136 lines
phasher
Simple CLI program hashing passwords into PHC strings.
Usage
Basic
Provide one string:
phasher "Hello world"
Or multiple strings: (since v0.2)
phasher "Hello world" GoodMorning 'GoodNight'
Algorithms
By default, phasher uses Argon2 to hash your data. You can also choose different algorithms.
phasher "Hello world" -a scrypt
stdin reading (since v0.2)
If there are no strings provided, phasher will read stdin instead:
phasher << EOF
Hello world
Welcome!
EOF
phasher < /path/to/a/file.txt
You can also use piping to pass data into phasher:
printf %s "Hello world" | phasher
cat /path/to/a/file.txt | phasher
Dependencies
~2–2.7MB
~51K SLoC