How to Extract a Bitcoin Core wallet.dat Hash and Recover Your Password with Hashcat
Step-by-step guide to safely extracting the mkey hash from wallet.dat offline, running Hashcat -m 11300 on your own GPU, and knowing when to use a recovery cluster.
If you hold an older Bitcoin Core (or Litecoin / Dogecoin Core) wallet.dat file and forgot the encryption passphrase, you do not need to share your private keys with anyone to start recovering your password.
Step 1: Make an Offline Backup Copy First
Before touching anything, copy your original wallet.dat onto two separate offline USB drives and work only on a copy. Never run experimental scripts on your only copy of the wallet.
Step 2: Extract Only the Encrypted Master Key (mkey) Hash
Bitcoin Core encrypts private keys with a random master key (mkey), and encrypts that master key with your passphrase using iterated SHA-512 + AES-256-CBC. Inside the binary file, the mkey record follows a predictable structure:
0x30 [48-byte encrypted master key] 0x08 [8-byte salt] [method=0] [iterations] 0x00
You can extract this hash in two ways:
- Browser (zero install, works offline): Use our wallet.dat Hash Extractor. It reads the file strictly inside browser memory and outputs the Hashcat
-m 11300string ($bitcoin$64$...). - Command line: Run
bitcoin2john.py wallet.dat > wallet.hashfrom the official John the Ripper repository.
Important Security Fact: The extracted
$bitcoin$...hash cannot spend your Bitcoin. It only lets Hashcat verify whether a guessed password is correct.
Step 3: Run Hashcat Locally (-m 11300)
Download the official binaries from hashcat.net/hashcat and save your hash into wallet.hash.
Dictionary + Rules Attack (Best First Attempt)
Write down every base word, nickname, or passphrase you think you might have used into my_clues.txt, then run:
hashcat -m 11300 -a 0 wallet.hash my_clues.txt -r rules/best64.rule --status
Mask Attack (When You Know the Pattern)
If you remember a prefix plus 4 digits (e.g., satoshi1984):
hashcat -m 11300 -a 3 wallet.hash "satoshi?d?d?d?d" --status
When Should You Ask a Specialist for Help?
- Your wallet has high iteration counts (100,000+ iterations) and a laptop GPU only tests a few hundred passwords per second.
- You remember fragments of 3–4 words mixed with unknown capitalization, typos, or symbols that require custom multi-rule pipelines.
- Your
wallet.datis corrupted and throws a Berkeley DB error.
In those cases, you can submit only your extracted hash and clues for a free feasibility review under No Recovery, No Fee.
Need Hands-On Help With Your Wallet?
Try our zero-upload offline tools first, or request a confidential feasibility review under No Recovery, No Fee.