john icon indicating copy to clipboard operation
john copied to clipboard

Support for BIP-38 Password Encrypted Paper Wallets

Open kholia opened this issue 7 years ago • 5 comments

References,

  • https://bitcoinpaperwallet.com/bip38-password-encrypted-wallets/

  • https://github.com/bitcoinjs/bip38/blob/master/index.js

  • https://github.com/cantonbecker/bitcoinpaperwallet

  • https://github.com/cscott/bip38-cracker

  • https://github.com/cculianu/brute38

The brute38 projects has support for Bitcoin, Bitcoin Cash plus over 170+ other different address styles.

Example,

  • The password for 6PRTUgANKUuie9f6yH3JcckYykhxXYxRLaPYLn1Vjjmz3c6k2mR5sT663J is openwall.

kholia avatar Feb 06 '18 10:02 kholia

hello, Any update ? Thx.

prodnet avatar Oct 18 '18 11:10 prodnet

It's pretty low in the "priority list".

kholia avatar Oct 18 '18 12:10 kholia

You would need to account for two variant BIP-38 encryption processes - EC Multiply and non Multiply. Ran into a weird issue here: https://github.com/xeroc/python-graphenelib/blob/master/graphenebase/bip38.py

From: https://en.bitcoin.it/wiki/BIP_0038

Proposed specification Object identifier prefix: 0x0142 (non-EC-multiplied) or 0x0143 (EC-multiplied). These are constant bytes that appear at the beginning of the Base58Check-encoded record, and their presence causes the resulting string to have a predictable prefix.

Ran into this because I was looking at a tool that doesn't account for EC multiplied encrypted private keys, whereas it appear s that btcrecover DOES. So you would need to have some logic to account for an EC multiplied encrypted private key, usually with the 8 byte salt etc... I don't know enough YET on how to implement this, but am learning.

sigkill avatar Feb 26 '22 06:02 sigkill

IMHO this issue should get escalated because there are a lot of people with locked wallets, and john would be much faster for resolving these issues than hashcat due to the CPU bound scrypt functions.

sigkill avatar Feb 26 '22 06:02 sigkill

Somewhat helpful: https://github.com/maxweisspoker/pybip38

sigkill avatar Feb 26 '22 07:02 sigkill