Skip to content

Latest commit

 

History

History
51 lines (39 loc) · 1.63 KB

README.md

File metadata and controls

51 lines (39 loc) · 1.63 KB

SHA-256

Getting StartedComments

SHA-256 Hashing Algorithm Implemented in C

SHA-256 is a cryptographic hash function that takes an input and produces a 256-bit (32-byte) hash value. It's widely used in many security applications and protocols.

Documentation

Prerequisites

You need cmake, gcc or clang to compile the project.
gcc
cmake

🚀 Getting started

Cloning

How to clone this project

git clone [email protected]:sandviklee/sha-256.git

Running

Make sure you have all the previous prerequisites installed on your machine. Then you can run the following commands to compile and run the project:

CMakeList:

cd build
cmake ..
make; ./sha256

GCC:

gcc ./src/main.c -o build/sha256; ./build/sha256

🗯️ Comments

This project was made for educational purposes only. It is not recommended to use this code in production.

There is still some work to be done, such as:

  • Add support for larger and more blocks to be hashed
  • Fix the compute function to work with N consecutive Hash values... (read docs)
  • Add support for hashing many different types