cryptoFuzz Python Package for Generate and Converting Wallet Private Key and Mnemonic for Address Bitcoin
# on windows
pip install cryptofuzz
# on Linux
pip3 install cryptofuzz
or for download manual:
git clone https://github.com/Pymmdrza/cryptofuzz
cd cryptofuzz
./install
generated random private key without repeat :
from cryptofuzz import getPrivateKey
Privatekey = getPrivateKey()
Generated random mnemonic with standard size :
from cryptofuzz import getMnemonic
# default size 12 . can use [12, 18, 24]
mnemonicString = getMnemonic(size=12)
Generated Random Bytes Without Repeat :
from cryptofuzz import getBytes
byte = getBytes()
Generate Random Binary Without repeat 0/1
:
from cryptofuzz import getBin
binary_string = getBin(256)
from cryptofuzz import PrivateKey_To_Bytes
privatekey = Wallet.getPrivateKey()
# Convert Private Key HEX To Bytes SEED
byte = Wallet.PrivateKey_To_Bytes(privatekey)
generated private key (hex) and convert to wif compressed and uncompressed.
from cryptofuzz import getPrivateKey, PrivateKey_To_Wif
privatekey = getPrivateKey()
# Convert Private key Hex To Wif
# compressed
wif_compress = PrivateKey_To_Wif(privatekey, compress=True)
# wif Uncompressed
wif_uncompress = PrivateKey_To_Wif(privatekey, compress=False)
from cryptofuzz import getPrivateKey, PrivateKey_To_Mnemonic
privatekey = getPrivateKey()
# convert private key [hex] To mnemonic
mnemonic_string = PrivateKey_To_Mnemonics(privatekey)
# for size mnemonic can use [12, 18, 24]
from cryptofuzz import getPrivateKey, PrivateKey_To_Binary
privatekey = getPrivateKey()
# convert hex to bin
binary_string = PrivateKey_To_Binary(privatekey)
from cryptofuzz import getPrivateKey, PrivateKey_To_Decimal
privatekey = getPrivateKey()
# convert private key hex to number (dec)
dec = PrivateKey_To_Decimal(privatekey)
convert private key Hex
to Compress and Uncompress Address
from cryptofuzz import getPrivateKey, PrivateKey_To_Wif
privatekey = getPrivateKey()
# convert private key to compress address
compress_Address = PrivateKey_To_Address(privatekey, compress=True)
# convert to uncompress address
uncompress_Address = PrivateKey_To_Address(privatekey, compress=False)
generated private key and convert to public key compress and uncompress:
from cryptofuzz import getPrivateKey, PrivateKey_To_PublicKey
privatekey = getPrivateKey()
# convert to public key uncompress
public_uncompress = PrivateKey_To_PublicKey(privatekey)
# convert private key hex to public key compress
public_compress = PrivateKey_To_PublicKey(privatekey, compress=True)
from cryptofuzz import getBytes, Bytes_To_PrivateKey
byte = getBytes()
# convert bytes to hex (private key)
privatekey = Bytes_To_PrivateKey(byte)
convert bytes to mnemonic with default size=12
can use standard sizr: 12, 18, 24
from cryptofuzz import getBytes, Bytes_To_Mnemonic
byte = getBytes()
# Convert bytes to mnemonic with default size 12
mnemonic_words = Bytes_To_Mnemonic(byte)
convert bytes To wif Compress and uncompress:
from cryptofuzz import getBytes, Bytes_To_Wif
byte = getBytes()
# compress wif
wif_compress = Bytes_To_Wif(byte, compress=True)
#uncompress Wif
wif_uncompress = Bytes_To_Wif(byte, compress=False)
convert bytes to public key compress and uncompress
from cryptofuzz import getBytes, Bytes_To_PublicKey
byte = getBytes()
# compress Publickey
Pub_compress = Bytes_To_PublicKey(byte, compress=True)
#uncompress Wif
Pub_uncompress = Bytes_To_PublicKey(byte, compress=False)
convert bytes to decimal number
from cryptofuzz import getBytes, Bytes_To_Decimal
byte = getBytes()
#convert to integer
dec = Bytes_To_Decimal(byte)
convert wif to public key compress and uncompress
from cryptofuzz import Wif_To_PublicKey
wif = "WIF_STRING_HERE"
pub_compress = Wif_To_PublicKey(wif, compress=True)
pub_uncompress = Wif_To_PublicKey(wif, compress=False)
convert Wif To Mnemonic With Default size=12
from cryptofuzz import Wif_To_Mnemonic
wif = "WIF_STRING_HERE"
mnemonic_string = Wif_To_Mnemonic(wif)
from cryptofuzz.Wallet import *
passphrase = "Mmdrza.com"
compress_address = Passphrase_To_Address(passphrase, True)
uncompress_address = Passphrase_To_Address(passphrase, False)
from cryptofuzz.Wallet import *
seed = getBytes()
xprv = Bytes_To_XPRV(seed)
xpub = Bytes_To_XPUB(seed)
Programmer & Owner : Mmdrza.Com
Email : [email protected]
Github: cryptofuzz/cryptofuzz
Document: cryptofuzz
Bitcoin (BTC): 1MMDRZA12xdBLD1P5AfEfvEMErp588vmF9
Ethereum & USDT (ERC20): 0x348e3C3b17784AafD7dB67d011b85F838F16E2D1
USDT & TRON (TRC20): TR4mA5quGVHGYS186HKDuArbD8SVssiZVx
Litecoin (LTC): ltc1qtgvxc6na9pxvznu05yys3j5rq9ej6kahe2j50v