fherbine / 42_ft_ssl

ft_ssl project @42

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ft_ssl [md5] [sha256]

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

How to build

$ make

How to run

./ft_ssl <hash_algorithm> [options] [file]
./ft_ssl md5 [-p -q -r -s <string>] [file]
./ft_ssl sha256 [-p -q -r -s <string>] [file]

Options:

  • -p, echo STDIN to STDOUT, then append the checksum to STDOUT.
  • -q, quiet mode.
  • -r, reverse the output format.
  • -s, print the sum of the given string.

Usage with piped STDIN:

$ echo "Hello world" | ./ft_ssl [options]

How to run tests

$ make test

TODO:

REQUIRED:

  • Command parsing.
  • Files reading.
  • STDIN reading (piped).
  • md5 hash algorithm.
  • sha256 algorithm.
  • Norm

BONUSES:

  • Unittests
  • Read from STDIN.
  • sha512
  • whirlpool
  • other ?

About

ft_ssl project @42


Languages

Language:C 84.7%Language:Python 13.3%Language:Makefile 1.9%