Thanks to visit codestin.com
Credit goes to github.com

Skip to content

๐Ÿ” Quantum Hash Analysis Toolkit A hybrid cryptographic analysis project combining Azure Quantum with classical tools like Hashcat. This toolkit demonstrates how to offload or simulate hash checking using Q# and Python/C#, integrating cloud-based quantum computing with traditional brute-force techniques for password recovery and hash verification.

License

Notifications You must be signed in to change notification settings

TxilorAlvarez/QuantumCrackSim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

โš›๏ธ QuantumCrackSim: Grover-Based Password Search Simulation

QuantumCrackSim is a modular simulation framework that models password cracking logic using Groverโ€™s Algorithm over contextual dictionaries and hashcat-like masks. It is designed for experimentation within Azure Quantum environments, offering insight into quantum search acceleration over classical brute-force techniques.


๐ŸŽฏ Objective

To evaluate the feasibility and performance of Grover's algorithm when applied to password search problems modeled from real-world dictionaries and structured character masks. The simulation highlights how quantum principles reduce search complexity from linear O(N) to quadratic O(โˆšN).


๐Ÿ“ Project Structure

QuantumCrackSim/ โ”œโ”€โ”€ Quantum/ โ”‚ โ””โ”€โ”€ GroverSearch.qs # Quantum algorithm in Q# โ”œโ”€โ”€ host/ โ”‚ โ””โ”€โ”€ host.py # Hybrid dispatcher with entropy and cracking logic โ”œโ”€โ”€ data/ โ”‚ โ”œโ”€โ”€ dictionary.txt # Sample wordlist (useful for testing) โ”‚ โ””โ”€โ”€ mega_diccionario_tolima.txt # High-volume dictionary (14M+ entries) โ”œโ”€โ”€ config/ โ”‚ โ””โ”€โ”€ target_config.json # Hash target + encoding โ”œโ”€โ”€ masks/ โ”‚ โ””โ”€โ”€ mask_config.json # Hashcat-style mask definitions โ”œโ”€โ”€ scripts/ โ”‚ โ”œโ”€โ”€ process_cap_files.py # Extracts SSID/BSSID info from .cap โ”‚ โ”œโ”€โ”€ cap_to_hashcat.py # Converts .cap โ†’ .hccapx / .22000 โ”‚ โ”œโ”€โ”€ grover_oracle_builder.py # Builds Grover oracle from target โ”‚ โ”œโ”€โ”€ entropy_analyzer.py # Entropy stats from dictionary data โ”‚ โ”œโ”€โ”€ mask_evaluator.py # Evaluates mask complexity + pattern entropy โ”‚ โ””โ”€โ”€ quantum_launcher.py # Main Grover executor across masks/dictionary โ”œโ”€โ”€ requirements.txt # Dependency list for virtual environment โ”œโ”€โ”€ setup_env.sh # Quick environment setup script โ””โ”€โ”€ README.md # Project documentation


๐Ÿงช What It Does

  • Converts dictionary and masks into quantum-searchable states
  • Constructs oracles dynamically to encode โ€œcorrect passwordโ€ logic
  • Executes Grover iterations based on search space size and success probability
  • Outputs simulated discovery step, query count, and resource estimation

๐Ÿง  Technologies Used

  • Q#: Core quantum operations and Grover loop logic
  • Python (QDK): Host application and input preprocessing
  • Azure Quantum: Backend simulator or physical quantum providers
  • Hashcat-like parsing: Converts masks (?u?l?d?s) to binary sets

โš™๏ธ Installation & Setup

1. Prerequisites

  • Python 3.8+
  • Visual Studio Code w/ Q# extension
  • Azure Quantum workspace + subscription
  • Microsoft Quantum Development Kit (QDK)

2. Installation

git clone https://github.com/TxilorAlvarez/QuantumCrackSim.git
cd QuantumCrackSim
pip install -r host/requirements.txt

3. Config Preparation

  • Place your password dictionary in data/dictionary.txt
  • Define mask(s) in masks/mask_config.json
  • Specify the target entry in config/target_config.json:
{
  "target": "Pa5$word",
  "encoding": "ascii"
}

๐Ÿš€ Run Simulation

python host/host.py --dictionary data/dictionary.txt --mask masks/mask_config.json --target config/target_config.json

Azure Quantum simulator will run Grover's algorithm over the constructed oracle to search for the target.


๐Ÿ“ˆ Outputs

  • Quantum query count (Grover iterations)
  • Simulated password found
  • Binary representation of candidate match
  • Search efficiency comparison vs classical brute-force
  • Optional resource estimates for real quantum execution

๐Ÿ” Extensions

  • Add support for GPU-based fallback if Quantum simulator is slow
  • Integrate Bash script triggers for hybrid workflow compatibility
  • Embed hooks into hashcat outputs for live dictionary generation
  • Adapt mask parsing to include regex-style constraints

๐Ÿ“˜ References

๐Ÿงช Highlights

๐Ÿงฎ Uses the input integer-encoded password bits to construct a matching oracle

๐ŸŒ€ Applies Groverโ€™s logic with a loop count estimated by your host controller

๐Ÿงฒ Output is integer-mapped to binary password representations


๐Ÿงช License

MIT ยฉ 2025 โ€” QuantumCrackSim by [Txilor_alvarez]
Educational tool for research in quantum search applications

  git clone https://github.com/TxilorAlvarez/QuantumCrackSim.git
---


About

๐Ÿ” Quantum Hash Analysis Toolkit A hybrid cryptographic analysis project combining Azure Quantum with classical tools like Hashcat. This toolkit demonstrates how to offload or simulate hash checking using Q# and Python/C#, integrating cloud-based quantum computing with traditional brute-force techniques for password recovery and hash verification.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published