GithubHelp home page GithubHelp logo

base12's Introduction

base12

To spread the core values of Chinese socialism.

The project is named base12 but actually it's a base16 encoding with the following alphabet:

code/value code/value code/value code/value
社会/0 主义/4 核心/8 价值/C
富强/1 **/5 文明/9 和谐/D
自由/2 平等/6 公正/A 法治/E
爱国/3 敬业/7 诚信/B 友善/F

Install

$ git clone https://github.com/fduxiao/base12/
$ cd base12
# Tests
$ python setup.py test  # optional
$ pip install .

Usage

# show help
$ base12 -h
# encode
$ base12 [inputfile=stdin] [-o outputfile=stdout]
# decode
$ base12 -d [inputfile=stdin] [-o outputfile=stdout]

Example

$ base12
> Hello world.
主义核心平等**平等价值平等价值平等友善自由社会敬业敬业平等友善敬业自由平等价值平等主义自由法治社会公正
$ base12 -d
> 主义核心平等**平等价值平等价值平等友善自由社会敬业敬业平等友善敬业自由平等价值平等主义自由法治社会公正
Hello world.

b12tunnel

A tcp tunnel is provided named b12tunnel. An example for a client and a server to communicate is shown below.

# b12tunnel -h for help
$ nc -l -p 1234  # a nc server
# setup a b12tunnel to send decoded data to nc server
# b12tunnel -r remote_server -p remote_port -l local_port -t tunnel_type 
$ b12tunnel -r localhost -p 1234 -l 1236 -t decode 
# Then setup another b12tunnel connected to the decoding server
# b12tunnel -r remote_server -p remote_port -l local_port -t tunnel_type 
$ b12tunnel -r localhost -p 1236 -l 1237 -t encode 
# Then start a nc client as usual but with the port of the tunnel
$ nc localhost 1237

base12's People

Contributors

fduxiao avatar

Watchers

James Cloos 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.