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.
You need cmake, gcc or clang to compile the project.gcc
cmake
How to clone this project
git clone [email protected]:sandviklee/sha-256.git
CMakeList:
cd build
cmake ..
make; ./sha256
GCC:
gcc ./src/main.c -o build/sha256; ./build/sha256
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