Skip to content

42kmira/ft_ssl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation



This is the introductory project for the security branch at 42 Silicon Valley.

In this project we implement in C the hash functions MD5 and SHA256. For bonus I also implemented some others. This implementation reads the string or file in chunks, much like the most official implementations, as opposed to reading the entire thing string or file. It also uses a dispatch table that has each different hash function, making it easy to remove, or add new hash functions.

After the executable is made using the Makefile usage is:

./ft_ssl < Hash Function > [-pqr] [-s string] [file ...]

Below is a comparision of my program with the default openssl and md5 imlementation found on MacOS:





The hash function this program is capable of are:

  • md5
  • sha256
  • sha224
  • sha384
  • sha512

About

Implementation of md5 and sha256 in C.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published