Git Product home page Git Product logo

pa193's Introduction

Bech32m encoding and decoding tool

Getting the binary

Windows

Download bech32m.exe from latest release.
You can verify the file by downloading bech32m.exe.gpg and running gpg --verify .\bech32m.exe.gpg

Linux

Download bech32m from latest release.
You can verify the file by downloading bech32m.gpg and running gpg --verify .\bech32m.gpg

Using the tool

Decoding

Decode bech32m to hex

$ .\bech32m.exe decode --input bc1xt2wg4d5ape8zhcf3s4seqx85pdcleyhc89eys54m78p5s
32d4e455b4e872715f098c2b0c80c7a05b8fe497c1cb924295

Decode bech32m to base64

$ .\bech32m.exe decode --input bc1xt2wg4d5ape8zhcf3s4seqx85pdcleyhc89eys54m78p5s --output-format base64
MtTkVbTocnFfCYwrDIDHoFuP5JfBy5JClQ==

Decode bech32m to binary

$ .\bech32m.exe decode --input bc1xt2wg4d5ape8zhcf3s4seqx85pdcleyhc89eys54m78p5s --output-format binary
00110010110101001110010001010101101101001110100001110010011100010101111100001001100011000010101100001100100000001100011110100000010110111000111111100100100101111100000111001011100100100100001010010101

Encoding

If no --hrp arg is specified, default value for hrp rustafarian will be used.

Encode bech32m from hex

$ .\bech32m.exe encode --input 32d4e455b4e872715f098c2b0c80c7a05b8fe497c1cb924295 --hrp bc
bc1xt2wg4d5ape8zhcf3s4seqx85pdcleyhc89eys54m78p5s

Encode bech32m from base64

$ .\bech32m.exe encode --input MtTkVbTocnFfCYwrDIDHoFuP5JfBy5JClQ== --hrp bc --input-format base64
bc1xt2wg4d5ape8zhcf3s4seqx85pdcleyhc89eys54m78p5s

Encode bech32m from binary

$ .\bech32m.exe encode --input 00110010110101001110010001010101101101001110100001110010011100010101111100001001100011000010101100001100100000001100011110100000010110111000111111100100100101111100000111001011100100100100001010010101 --hrp bc --input-format binary
bc1xt2wg4d5ape8zhcf3s4seqx85pdcleyhc89eys54m78p5s

Input options

Input from stdin (default)

$ .\bech32m.exe decode
bc1xt2wg4d5ape8zhcf3s4seqx85pdcleyhc89eys54m78p5s
32d4e455b4e872715f098c2b0c80c7a05b8fe497c1cb924295

Input from file

$ .\bech32m.exe decode --input-file .\bech32string.txt
32d4e455b4e872715f098c2b0c80c7a05b8fe497c1cb924295

Input from cli

$ .\bech32m.exe decode --input bc1xt2wg4d5ape8zhcf3s4seqx85pdcleyhc89eys54m78p5s
32d4e455b4e872715f098c2b0c80c7a05b8fe497c1cb924295

Output options

Output to stdout (default)

$ .\bech32m.exe decode
bc1xt2wg4d5ape8zhcf3s4seqx85pdcleyhc89eys54m78p5s
32d4e455b4e872715f098c2b0c80c7a05b8fe497c1cb924295

Output to file

$ .\bech32m.exe decode --input bc1xt2wg4d5ape8zhcf3s4seqx85pdcleyhc89eys54m78p5s --output-file .\bech32string.txt
32d4e455b4e872715f098c2b0c80c7a05b8fe497c1cb924295

pa193's People

Contributors

prisionmike avatar trsak avatar b4rtosek avatar

Forkers

petr7555

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.