Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ipsbrunoreserva/bitcoin_cracking

GPU BIP39 Recovery Tool Utilizing OpenCL optimized PBKDF2 HMAC SHA-512 / SHA-256
https://github.com/ipsbrunoreserva/bitcoin_cracking

bip39 bitcoin cracking hacking mnemonic

Last synced: about 1 month ago
JSON representation

GPU BIP39 Recovery Tool Utilizing OpenCL optimized PBKDF2 HMAC SHA-512 / SHA-256

Awesome Lists containing this project

README

        

# Bitcoin OpenCL Brute Force BIP39
## 20 Million Hashes Per Second πŸš€

A highly optimized solution for brute-forcing the final 6 mnemonic words in Bitcoin wallets. This implementation employs OpenCL to perform SHA-256 and SHA-512 calculations directly on the GPU, minimizing overhead and maximizing performance through efficient cryptographic optimization.

---

### πŸš€ Key Features

βœ… **Windows Management Integration**
Seamless control of the tool via an intuitive Windows-based environment, simplifying setup and operation.

βœ… **Sequential Mnemonic Generation**
Implements an advanced sequential algorithm capable of generating billions of BIP-39 mnemonic combinations with precision and efficiency.

βœ… **Optimized GPU SHA-256 Kernel**
Utilizes OpenCL for GPU-accelerated SHA-256 hashing, vital for high-performance cryptographic computations in Bitcoin systems.

❌ **GPU-Optimized SHA-512 and PBKDF2 (In Progress)**
Expanding GPU acceleration to cover SHA-512 and PBKDF2 for faster seed-to-master-key derivation.

❌ **Blockchain Address Matching (Upcoming)**
Incorporating a mechanism to match derived addresses against real-world blockchain data for validation and exploratory attack scenarios.

---

## πŸ’‘ Performance Highlights

Achieves exceptional performance:
- **7 billion valid seeds per second** on a CPU, even without a dedicated GPU.
- Scalable to **trillions** of hashes per second with high-end GPUs, leveraging cryptographic parallelism.

### Optimizations:
- **Using long64** instead of strings minimizes memory overhead and improves processing speed by reducing the use of slow memory operations typically associated with handling string data.
- **Memory Efficiency**: Utilizes constant memory for storing keys and shared variables.
- **Pipeline Streamlining**: Reduces bottlenecks by optimizing the hashing workflow.
- **Modular Architecture**: Designed for extensibility, allowing quick adoption of new algorithms or derivation techniques.

---

## πŸ”§ Technical Details

- **Bitwise Optimization**: Works directly with bits and bytes, reducing memory and processing overhead compared to string manipulation.
- **Reduced Search Space**: Limits checksum combinations to 1 in 128 (instead of 1 in 2048), exponentially increasing processing speed.
- **Precomputed Pads for PBKDF2**: Avoids redundant calculations, significantly accelerating key derivation.
- **Efficient Loops**: Maximized GPU parallelism by eliminating unnecessary computational cycles.

---

## πŸ“… Work in Progress

πŸ”„ **SHA-512 and PBKDF2 Optimization**
Implementing GPU-accelerated versions to improve seed-to-master-key derivation efficiency.

πŸ”„ **Blockchain Address Matching**
Developing clustering algorithms to compare derived wallet addresses with real blockchain datasets.

πŸ”„ **Scalability Enhancements**
Adapting the codebase for GPU clusters to enable large-scale brute force computations.

---

## 🧠 How It Works

1. **Mnemonic Seed Generation**: Sequentially generates billions of BIP-39 mnemonic phrases following Bitcoin standards.
2. **Checksum Validation**: Leverages optimized SHA-256 hashing to validate seeds with unparalleled speed.
3. **Seed Derivation**: Processes valid seeds to derive wallet addresses for further use.
4. **Wallet Mapping**: Efficiently reduces search space to enable real-time exploration of Bitcoin wallets.

---

## πŸš€ Why It’s So Fast

- **Minimal Memory Usage**: Processes directly at the bit level, avoiding string overhead.
- **Precomputation**: Pads for PBKDF2 are precomputed to streamline calculations.
- **GPU Acceleration**: Optimized kernels leverage constant memory and parallel processing.
- **Reduced Search Complexity**: Focuses on a highly probable search space, reducing unnecessary operations.

---

## πŸ’» Practical Applications

- High-speed wallet recovery and validation.
- Exploring blockchain clusters for potential wallet matches.
- Cryptographic research in seed derivation techniques.

Stay tuned for future updates as we push the limits of cryptographic brute force tools! πŸ‘¨β€πŸ’»βœ¨