Skip to content

akash2061/RUST-Hash-Checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Password-Hash Checker Built in Rust 🦀

Overview

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.

Description

This Rust-based CLI tool offers two main functionalities:

  1. String to Hash Conversion: It converts a provided string into its corresponding SHA-256 hash.
  2. Hash Checking: It compares a given SHA-256 hash against a list of hashed passwords to determine if there's a match.

Crates Used:

  • clap = "v2.33"
  • colored = "v2.1.0"
  • sha2 = "v0.10.8"

Where It Works

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.

Installation

Prerequisites

Make sure you have Rust installed on your system. If not, you can download it from rust-lang.org.

Installation

  1. Clone this repository:

    git clone https://github.com/akash2061/RUST-Hash-Checker.git
    cd RUST-Hash-Checker
  2. Build the project:

    cargo build --release
  3. Run the application:

    cargo run --release

Or Use Released Version

  1. Go to the Releases page or Directly Download the latest version.

  2. Download the latest release for your platform.

  3. Open your terminal and navigate to the folder where the executable is downloaded.

  4. 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.

Usage

Convert a String to Hash

hash_check -p "path_to_password-file.txt" -s "hello world"

Convert a Hash to String

hash_check -p "path_to_password-file.txt" -x " b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9"

Version & Help:

Version & Help

String to Hash:

String to Hash

Hash to String:

Hash to String

Error-Handling:

Error-Handling

Dependencies

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.

Contribution

Contributions are welcome! If you encounter any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages