Skip to content

sandviklee/sha-256

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

SHA-256 Hashing Algorithm written in C

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published