This project is a simple tool built in Rust for converting a string to its SHA-256 hash and finding the hash of a string using a password list. It utilizes the SHA-256 hashing algorithm to securely hash strings and compares them against a provided list of hashed passwords to find matches.
This Rust-based CLI tool offers two main functionalities:
- String to Hash Conversion: It converts a provided string into its corresponding SHA-256 hash.
- Hash Checking: It compares a given SHA-256 hash against a list of hashed passwords to determine if there's a match.
- clap = "v2.33"
- colored = "v2.1.0"
- sha2 = "v0.10.8"
This tool is useful for anyone looking to securely hash strings or check passwords against a known list of hashed passwords. It can be used by developers, security professionals, or anyone concerned with password security.
Make sure you have Rust installed on your system. If not, you can download it from rust-lang.org.
-
Clone this repository:
git clone https://github.com/akash2061/RUST-Hash-Checker.git
cd RUST-Hash-Checker
-
Build the project:
cargo build --release
-
Run the application:
cargo run --release
-
Go to the Releases page or Directly Download the latest version.
-
Download the latest release for your platform.
-
Open your terminal and navigate to the folder where the executable is downloaded.
-
Copy the executable to the
/usr/local/bin
directory using the following command:sudo cp ./hash_check /usr/local/bin/
Now you can check hash and password from any terminal window by simply typing its name hash_check
, thanks to its location in /usr/local/bin
.
Download pass_list.txt file for 1,00,000+ passwords.
hash_check -p "path_to_password-file.txt" -s "hello world"
hash_check -p "path_to_password-file.txt" -x " b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9"
This project uses the sha2
crate for hashing functionality and clap
for command-line argument parsing. Both dependencies are managed via Cargo, the Rust package manager.
Contributions are welcome! If you encounter any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.