Welcome to the SHA-256 Hash Generator project! This simple application allows you to input any string and get its SHA-256 hash value. It's implemented in C++ and demonstrates the SHA-256 hashing algorithm.
- Simple to Use: Just enter a string and get the SHA-256 hash.
- C++ Implementation: Pure C++ implementation without any external dependencies.
- Educational: Great for learning about hashing and C++ classes.
Follow these instructions to build and run the project on your local machine.
Make sure you have the following installed:
- A C++ compiler (e.g., g++)
- CMake
-
Clone the Repository:
git clone https://github.com/akhilparakka/sha256-cpp.git cd sha256-cpp
-
Create a Build Directory:
mkdir build cd build
-
Run CMake and Build:
cmake .. cmake --build .
After building the project, you can run the executable:
./sha256
You will be prompted to enter a string. The application will then output the SHA-256 hash of the input string.
$ ./sha256
Enter input for hashing:
Hello, World!
SHA-256("Hello, World!") = dffd6021bb2bd5b0af676290809ec3a53191dd81c7f70a4b28688a362182986f