Giter Club home page Giter Club logo

jumiru-bech32m's Introduction

jumiru-bech32m

There are two modes this application can run in, encode and decode, which have a slight difference in their usage.

For security reasons, running the application in its own dedicated directory it is highly recommended (or specifying its working directory to a one dedicated to this application). Should it be run by an untrusted user, it must be ensured that the user cannot set JVM arguments.

The application also allows for error detection, which can be enabled by appending "errdetect" to any valid decoding command. If an error occurs during the decoding, the application attempts to find a similar input (at most one symbol difference) that would decode correctly and displays it to the user.

Usage:

required verbatim, required group, required parameter, [optional verbatim], (tuple)


java -jar jumiru-1.0.jar encode data_format input_destination output_destination HRP

java -jar jumiru-1.0.jar decode data_format input_destination output_destination [errdetect]


data_format = base64/bin/hex

input_destination = stdin/(file file_name)/(arg data_part)/emptyarg

output_destination = stdout/(file file_name)


Note: Input from stdin must be terminated by a newline

Note: file_name must be in the current working directory (or its subdirectory)

Example usage

  • Encode "a" in HRP with empty data part in hex read from argument and output it to stdout

    encode hex arg "" stdout a or encode hex emptyarg stdout a

  • Encode "b" in HRP with binary data part from argument and output it to file

    encode bin arg 0110101 file output1.txt b

  • Encode "a" in HRP with base64 data part from input1.txt file into stdout

    encode base64 file input1.txt stdout a

  • Decode bech32m string read from argument to base64, output to stdout.

    decode base64 arg abcdef1l7aum6echk45nj3s0wdvt2fg8x9yrzpqzd3ryx stdout

  • Decode data from input2.txt to binary data and enable error detection, output to stdout.

    decode bin file input2.txt stdout errdetect

jumiru-bech32m's People

Contributors

antroit47 avatar juliajamnicka avatar rudyzzz avatar

Stargazers

 avatar

Watchers

Antonín Dufka avatar  avatar  avatar

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.