A simple C++ command-line utility for computing hashes of strings or files. Designed for ease of use and extensibility.
- Compute cryptographic hashes of strings and files
- Modular structure: easy to plug in new algorithms
- Open to contributions
Algorithm | Flag | Status |
---|---|---|
SHA-256 | --SHA256 | Supported |
SHA-1 | --SHA1 | Supported |
SHA-512 | --SHA512 | Planned |
Make sure you have a C++17 compatible compiler installed (like g++
), then run:
make
This will compile the project and generate an executable named getHash
.
./getHash --SHA256 "hello world"
No need for quotes if you use a single-word string. Use quotes for multi-word input.
./getHash --SHA256 --FILE /path/to/your/file.txt
The hash will be printed to the terminal.
Installation of Hash It requires root permissions.
Required dependencies - git
if git is not installed use
sudo apt-get install git -y
to install git.
git clone https://github.com/Abe0770/Hash-It.git
cd Hash-It
chmod u+x install.sh
sudo ./install.sh
cd Hash-It
chmod u+x uninstall.sh
sudo ./uninstall.sh
Feel free to contribute by adding new hash algorithms.
- Fork this repo
- Create a new branch
- Add your changes
- Submit a pull request
We’ll be happy to review your contribution!
This project is released under the MIT License.