This is a 42 project. In this project, I have to code a program able to hash files and streams from STDIN. Final grade: 100/100
$ make
./ft_ssl <hash_algorithm> [options] [file]
./ft_ssl md5 [-p -q -r -s <string>] [file]
./ft_ssl sha256 [-p -q -r -s <string>] [file]
-p
, echoSTDIN
toSTDOUT
, then append the checksum toSTDOUT
.-q
, quiet mode.-r
, reverse the output format.-s
, print the sum of the given string.
$ echo "Hello world" | ./ft_ssl [options]
$ make test
REQUIRED:
- Command parsing.
- Files reading.
-
STDIN
reading (piped). - md5 hash algorithm.
- sha256 algorithm.
- Norm
BONUSES:
- Unittests
- Read from
STDIN
. - sha512
- whirlpool
- other ?