DEV Community

Cover image for Rust-Powered Password Decrypter: Find the String Behind the Hash! πŸ¦€πŸ”’
Akash Soni
Akash Soni

Posted on

1

Rust-Powered Password Decrypter: Find the String Behind the Hash! πŸ¦€πŸ”’

Overview

In the realm of cybersecurity, hashing passwords is essential for secure data storage. But what if you need to check the integrity of a hash or match it against a list? That’s where Password Hash-Checker comes in!

This Rust-powered CLI tool lets you:

  1. Convert a string to its SHA-256 hash.
  2. Check a given hash against a password list to uncover potential matches.

With its simplicity and blazing-fast performance, this tool is perfect for developers, security professionals, or anyone passionate about safeguarding sensitive information.


Features

  • πŸ”‘ String to Hash Conversion: Convert any plain text string into its corresponding SHA-256 hash in a snap.

  • πŸ›‘οΈ Hash Checking: Compare a given SHA-256 hash with a known password list and find matches quickly and efficiently.


Where It Works

This tool is ideal for:

  • πŸ”’ Security Professionals: Verify or reverse-engineer hashes during pentesting.
  • πŸ› οΈ Developers: Quickly hash strings or test password security.
  • 🌐 Anyone Concerned with Security: Ensure sensitive data is hashed securely.

Installation

Ready to get started? Here's how you can install and use Password Hash-Checker:

Step 1: Download the Latest Release

Visit the Releases Page or directly Download the latest version for your platform. Grab the pass_list.txt file containing over 100,000+ passwords to use for hash comparison.

Step 2: Setup

  • Open your terminal and navigate to the folder where the executable is downloaded.
  • Copy the executable to the /usr/local/bin directory using the command:
sudo cp ./hash_check /usr/local/bin/  
Enter fullscreen mode Exit fullscreen mode
  • Grant executable permission:
chmod +x /usr/local/bin/hash_check  
Enter fullscreen mode Exit fullscreen mode

Now you can access hash_check from anywhere in the terminal.

Usage

1️⃣ Convert a String to Hash

Hash any plain text string:

hash_check -p "path_to_password-file.txt" -s "hello world"
Enter fullscreen mode Exit fullscreen mode

2️⃣ Convert a Hash to String

Check if a given hash matches any password in your list:

hash_check -p "path_to_password-file.txt" -x "b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9"  
Enter fullscreen mode Exit fullscreen mode

Error Handling

The tool is designed to handle errors gracefully:

  • Invalid file paths.
  • Unsupported hash formats.
  • Missing arguments.

You'll get clear, colored error messages to guide you.

Project Details

Find the complete source code on GitHub: RUST-Hash-Checker Repository

Buy-me-a-Coffee

Heroku

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

Top comments (0)

Sentry image

See why 4M developers consider Sentry, β€œnot bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

πŸ‘‹ Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay