Git Product home page Git Product logo

cryptofuzz's Introduction

cryptofuzz python cryptography library

CryptoFuzz

Installing & Quick Use

Windows

On Windows, you can install CryptoFuzz using the following pip command:

pip install cryptofuzz

Linux & Mac

On Linux and macOS, you should use pip3 for installation:

pip3 install cryptofuzz

Git

To use the latest version from the source, you can clone the CryptoFuzz repository:

  1. Clone the repository:
git clone https://github.com/Pymmdrza/cryptofuzz
  1. Navigate to the cloned directory:
cd cryptofuzz
  1. Install the package:

Windows

You can either run the install.bat or install command:

./install.bat
# or
./install

Linux & Mac

On Linux and Mac, you can use the following commands to install:

bash install.sh
# or simply:
./install.sh

Note: If you face any permission issues on Linux, make the script executable using:

sudo chmod +x install.sh

CLI

generated and converted private key (hex) , bytes (seed), wif compressed and uncompressed and mnemonic , Root Key (xprv) , XPUB, Decimal (Number) , Public Key and Binary To Compressed and Uncompressed Bitcoin Address :

  • Generated Option : --generate and -g
  • Total Generated and convereted Key Option: --total, -t (integer/number type)
  • Saved all Details and full information to JSON file (OutputFile.json) option --save and -s this example just generated 1000 key without save details
# windows
cryptofuzz --generate --total 1000
# linux & mac
cryptofuzz --generate --total 1000

example Generated 1000 Key and saved to OutputFile.json:

# windows
cryptofuzz -g -t 1000 -s
# linux & mac
cryptofuzz --generate --total 1000 --save
# or can use : -g -t 1000 -s

Run this command anywhere in your system (in any Path folder) Saved OutputFile.json

create with CryptoFuzz, you can see from the example section with the following cryptofuzz-example command in your terminal:

Generated example Private Key From CLI cryptofuzz-example :

all option command for windows cryptofuzz-example OPTION and Linux or Mac cryptofuzz-example OPTION :

  • Generated private key (hex) & Converted : cryptofuzz-example privatekey
  • Generated bytes & Converted : cryptofuzz-example bytes
  • Generated mnemonic & Converted : cryptofuzz-example mnemonic
  • Generated wif & Converted : cryptofuzz-example wif
  • Generated binary & Converted : cryptofuzz-example binary
  • Generated Root Key (xprv) & Converted : cryptofuzz-example xprv
  • Generated decimal & Converted : cryptofuzz-example decimal

Generated and Converted Private Key (HEX) To another cryptocurrency:

  • Generated Private Key (Hex) and Converted To Ethereum Address [Example command]:
# windows
cryptofuzz-example ethereum
# linux and macOs:
cryptofuzz-example ethereum
  • Generated Private Key (Hex) and Converted To bitcoin Address [Example command]:
# windows
cryptofuzz-example bitcoin
# linux and macOs:
cryptofuzz-example bitcoin
  • Generated Private Key (Hex) and Converted To dash Address [Example command]:
# windows
cryptofuzz-example dash
# linux and macOs:
cryptofuzz-example dash
  • Generated Private Key (Hex) and Converted To dogecoin Address [Example command]:
# windows
cryptofuzz-example dogecoin
# linux and macOs:
cryptofuzz-example dogecoin
  • Generated Private Key (Hex) and Converted To digibyte Address [Example command]:
# windows
cryptofuzz-example digibyte
# linux and macOs:
cryptofuzz-example digibyte
  • Generated Private Key (Hex) and Converted To Bitcoin Gold Address [Example command]:
# windows
cryptofuzz-example bitcoingold
# linux and macOs:
cryptofuzz-example bitcoingold
  • Generated Private Key (Hex) and Converted To qtum Address [Example command]:
# windows
cryptofuzz-example qtum
# linux and macOs:
cryptofuzz-example qtum
  • Generated Private Key (Hex) and Converted To zcash Address [Example command]:
# windows
cryptofuzz-example zcash
# linux and macOs:
cryptofuzz-example zcash
  • Generated Private Key (Hex) and Converted To Ravencoin Address [Example command]:
# windows
cryptofuzz-example rvn
# linux and macOs:
cryptofuzz-example rvn
  • Generated Private Key (Hex) and Converted To Litecoin Address [Example command]:
# windows
cryptofuzz-example litecoin
# linux and macOs:
cryptofuzz-example litecoin


Private Key

More details about private key convert in python with cryptofuzz : cryptofuzz/Example/Privatekey

from cryptofuzz import Convertor, Generator
# // Convertor and Generator Shortcut
conv = Convertor()
gen = Generator()
# // Generate private key
privatekey = gen.generate_private_key()
# // Convert private key To bytes
seed = conv.hex_to_bytes(privatekey)
# // Convert private key To mnemonic
mnemonic = conv.hex_to_mne(privatekey)
# // Convert private key To wif compress
wif_compress = conv.hex_to_wif(privatekey, True)
# // Convert private key To wif uncompress
wif_uncompress = conv.hex_to_wif(privatekey, False)
# // Convert private key To decimal number
dec = conv.hex_to_int(privatekey)
# // Convert private key To binary
binary_str = conv.hex_to_binary(privatekey)
# // Convert private key To xprv
xprv = conv.hex_to_xprv(privatekey)
# // Convert private key To xpub
xpub = conv.hex_to_xpub(privatekey)
# // Convert private key To compress address
compress_address = conv.hex_to_addr(privatekey, True)
# // Convert private key To uncompress address
uncompress_address = conv.hex_to_addr(privatekey, False)

Wif

Convert From Wif ( More detail and Example )

import os
from cryptofuzz import Convertor

conv = Convertor()

# // generate byte
byte = os.urandom(32)
# // convert Byte To wif
wif = conv.bytes_to_wif(byte)
# // wif to mnemonic
mnemonic = conv.wif_to_mne(wif)
# // Convert Wif To Hex
privatekey = conv.wif_to_hex(wif)
# // Convert bytes To WIF Uncompress
wif_uncompress = conv.bytes_to_wif(byte, False)
# // Convert Wif To Decimal Number
dec = conv.wif_to_int(wif)
# // Convert Wif To Binary
binary_str = conv.wif_to_binary(wif)
# // Convert Wif To xprv
xprv = conv.wif_to_xprv(wif)
# // Convert Wif To xpub
xpub = conv.wif_to_xpub(wif)
# // Convert Wif To compress address
compress_address = conv.wif_to_addr(wif, True)
# // Convert Wif To uncompress address
uncompress_address = conv.wif_to_addr(wif, False)

Mnemonic

Convert From Mnemonic (BIP39) ( More Detail )

from cryptofuzz import Convertor, Generator

conv = Convertor()
gen = Generator()

# Generate Mnemonic
mnemonic = gen.generate_mnemonic(12)
# Convert Mnemonic To Seed Bytes
seed = conv.mne_to_bytes(mnemonic)
# Convert Mnemonic To Hex
privatekey = conv.mne_to_hex(mnemonic)
# Convert Mnemonic To WIF Compress
wif_compress = conv.mne_to_wif(mnemonic, True)
# Convert Mnemonic To WIF Uncompress
wif_uncompress = conv.mne_to_wif(mnemonic, False)
# Convert Mnemonic To Decimal Number
dec = conv.mne_to_int(mnemonic)
# Convert Mnemonic To Binary
binary_str = conv.mne_to_binary(mnemonic)
# Convert Mnemonic To xprv
xprv = conv.mne_to_xprv(mnemonic)
# Convert Mnemonic To xpub
xpub = conv.mne_to_xpub(mnemonic)
# Convert Mnemonic To compress address
compress_address = conv.mne_to_addr(mnemonic, True)
# Convert Mnemonic To uncompress address
uncompress_address = conv.mne_to_addr(mnemonic, False)

Decimal

Convert From Decimal (Number) ( More Detail )

from cryptofuzz import Convertor, Generator

conv = Convertor()
gen = Generator()


# generate random number decimal
dec = gen.generate_decimal()
# decimal to mnemonic
mnemonic = conv.int_to_mnemonic(dec)
# Convert decimal To Hex
privatekey = conv.int_to_hex(dec)
# Convert decimal To WIF Compress
wif_compress = conv.int_to_wif(dec, True)
# Convert decimal To WIF Uncompress
wif_uncompress = conv.int_to_wif(dec, False)
# Convert Wif To Binary
binary_str = conv.int_to_binary(dec)
# Convert Wif To xprv
xprv = conv.int_to_xprv(dec)
# Convert Wif To xpub
xpub = conv.int_to_xpub(dec)
# Convert Wif To compress address
compress_address = conv.int_to_addr(dec, True)
# Convert Wif To uncompress address
uncompress_address = conv.int_to_addr(dec, False)

contact

Programmer & Owner : Mr. PyMmdrza

Email : [email protected]

Github: cryptofuzz/cryptofuzz

Document: cryptofuzz


Donate:

Bitcoin (BTC): 1MMDRZA12xdBLD1P5AfEfvEMErp588vmF9

Ethereum & USDT (ERC20): 0x348e3C3b17784AafD7dB67d011b85F838F16E2D1

USDT & TRON (TRC20): TR4mA5quGVHGYS186HKDuArbD8SVssiZVx

Litecoin (LTC): ltc1qtgvxc6na9pxvznu05yys3j5rq9ej6kahe2j50v

cryptofuzz's People

Contributors

pymmdrza avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cryptofuzz's Issues

Error Importing getPrivateKey

Cheers!

I am getting the following error while running a few tests of this package:

Traceback (most recent call last):
File "/root/test_py/test.py", line 2, in
from cryptofuzz import getPrivateKey, PrivateKey_To_Address
ImportError: cannot import name 'getPrivateKey' from 'cryptofuzz' (/usr/local/lib/python3.9/dist-packages/cryptofuzz/init.py)

Can you tell me what I exactly have to do? The same error comes on windows.

Problem in Linux or MacOs.

if problem on installing on linux / debian :

first update and upgrade :

sudo apt-get update&&sudo apt-get upgrade -y

for installing lib's run this command:

sudo apt-get install -y autoconf automake build-essential libffi-dev libtool pkg-config python3-dev

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.