Skip to content

Commit

Permalink
Update. Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ELHARAKA committed May 2, 2024
1 parent c7738b1 commit 389cbc1
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 15 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@ This tool converts multiple bitcoin private keys from either HEX format or WIF (
## How To Use:
1) Download or clone this tool (git clone https://github.com/ELHARAKA/MassPrivatekeysToWIF.git) to your computer.
2) Navigate to the tool folder.
- To convert from HEX to WIF, create a text file named "brute-pvks.txt" and paste all your private keys (in HEX format) into this file, then save.
- To convert from WIF to HEX, create a text file named "wif.txt" and paste all your WIF private keys into this file, then save.
- To convert from HEX to WIF, create a text file named "hex_input.txt" and paste all your (HEX format) private keys.
- To convert from WIF to HEX, create a text file named "wif_input.txt" and paste all your (WIF format) private keys.
3)
- To generate WIF for uncompressed addresses from HEX, execute `pvkmassconvert.py` by double-clicking on it or running `python3 pvkmassconvert.py` from the command line.
- To generate WIF for compressed addresses from HEX, execute `pvkmassconvert_compressed.py` by double-clicking on it or running `python3 pvkmassconvert_compressed.py` from the command line.
- To convert from WIF to HEX, execute `pvkwif2hex.py` by double-clicking on it or running `python3 pvkwif2hex.py` from the command line.
4) The tool will export all converted private keys to a new text file within the same folder. Check `list-WIF-compressed.txt` or `list-WIF-uncompressed.txt` for WIF keys and `list-hex.txt` for HEX keys.
- To generate WIF (Compressed) run `python3 WIF_compressed.py`
- To generate WIF (Uncompressed) run `python3 WIF_uncompressed.py`
- To generate HEX from WIF, run `python3 WiftoHex.py`

4) The tool will export all converted private keys to a new text file(s) within the same directory. Check `compressed_output.txt` or `uncompressed_output.txt` for WIF keys OR `hex_output.txt` for HEX keys.

## Donations
If this tool saved you time or helped in any way, consider making a donation to support the developer:
Expand Down
6 changes: 3 additions & 3 deletions HexToWif_compressed.py → WIF_compressed.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ def convert(hex_private_key):
Convert a hexadecimal private key to Wallet Import Format (WIF) for compressed addresses.
"""
wif = convert_hex_to_wif(hex_private_key, compressed=True)
with open('HEX_2_WIF_Compressed.txt', 'a', encoding='utf-8') as file:
with open('compressed_output.txt', 'a', encoding='utf-8') as file:
file.write(f"{wif}\n")

# Call common.py to process the file
process_file("hex.txt", convert)
process_file("hex_input.txt", convert)

print("Conversion successful. Check your 'HEX_2_WIF_Compressed.txt' file for the converted keys.")
print("Conversion successful. Check your 'compressed_output.txt' file for the converted keys.")
print("__________________________________________________")
print("Developed by: Fahd El Haraka")
print("If this saved you time or helped, donations please for BTC Address:")
Expand Down
6 changes: 3 additions & 3 deletions HexToWif_uncompressed.py → WIF_uncompressed.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ def convert(hex_private_key):
Convert a hexadecimal private key to Wallet Import Format (WIF) for Uncompressed addresses.
"""
wif = convert_hex_to_wif(hex_private_key, compressed=False)
with open('HEX_2_WIF_Uncompressed.txt', 'a', encoding='utf-8') as file:
with open('uncompressed_output.txt', 'a', encoding='utf-8') as file:
file.write(f"{wif}\n")

# Call common.py to process the file
process_file("hex.txt", convert)
process_file("hex_input.txt", convert)

print("Conversion successful. Check your 'HEX_2_WIF_Uncompressed.txt' file for the converted keys.")
print("Conversion successful. Check your 'uncompressed_output.txt' file for the converted keys.")
print("__________________________________________________")
print("Developed by: Fahd El Haraka")
print("If this saved you time or helped, donations please for BTC Address:")
Expand Down
6 changes: 3 additions & 3 deletions WifToHex.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def wif_to_hex(wif_key):
"""
Convert a WIF private key back to its hexadecimal representation.
"""
with open('WIF_2_HEX.txt', 'a', encoding='utf-8') as file:
with open('hex_output.txt', 'a', encoding='utf-8') as file:
decoded = base58.b58decode(wif_key).hex()
hex_key = decoded[2:-10]
file.write(f"{hex_key}\n")
Expand All @@ -22,8 +22,8 @@ def process_file(file_path, conversion_function):
conversion_function(str.strip(line))

# Call common.py to process the file
process_file("wif.txt", wif_to_hex)
process_file("wif_input.txt", wif_to_hex)

print("Conversion successful. Check your 'WIF_2_HEX.txt' file for the converted keys.")
print("Conversion successful. Check your 'hex_output.txt' file for the converted keys.")
print("_________________________________")
print("Donations for BTC: bc1qttzkk555p78dyq9l8g7syza6n94ppysv66dps0")

0 comments on commit 389cbc1

Please sign in to comment.