The hash-gen utility

This utility is a command-line tool for generating cryptographic hashes of files or buffers using algorithms like MD5, SHA-1, SHA-256, and SHA-512.
Features
- Supports multiple hashing algorithms: MD5, SHA-1, SHA-256, and SHA-512.
- Extensible to support more hashing algorithms in the future.
- Simple and intuitive command-line interface.
Installation
Via Cargo
You can easily install the utility directly from crates.io using Cargo, Rust’s package manager. To install the latest version, run:
This command will download, compile, and install the utility to your Cargo bin directory (~/.cargo/bin by default). Ensure that this directory is in your system’s PATH environment variable to run the command from anywhere.
From source
Alternatively, if you prefer to build the utility from source, you can clone the repository and build it manually:
The binary will be available in the target/release directory.
Usage
Once installed, you can use the utility from the command line to generate cryptographic hashes for files or buffers using different algorithms.
Basic Commands
MD5 hash
SHA1 hash
SHA256 hash
SHA512 hash
Generate documentation
You can generate the project’s documentation using Rust’s built-in documentation tool, cargo doc. Run the following command:
This will generate the documentation and open it in your web browser. You’ll find detailed descriptions of all structs, traits, and methods available in the project.
Contributing
We welcome contributions to this project. If you’d like to contribute:
- Fork the repository.
- Create a feature branch.
- Submit a pull request.
We are happy to review any proposed changes.
License
This project is licensed under the MIT license - see the LICENSE file for details.