#password-hashing #password-hash #string #scrypt #phc #argon2 #cli

app phasher

Simple CLI program hashing passwords into PHC strings

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 Jun 24, 2024

#360 in Cryptography

Download history 38/week @ 2024-09-16 17/week @ 2024-09-23 1/week @ 2024-09-30 272/week @ 2024-11-25 13/week @ 2024-12-02

285 downloads per month

MIT license

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