Giter VIP home page Giter VIP logo

go-piping-duplex's Introduction

piping-duplex

CI

Duplex communication over Piping Server

Installation

Get executable binaries from GitHub Releases

Usage

Person A and B can communicate as follows.

Person A

piping-duplex aaa bbb

Person B

piping-duplex bbb aaa

Example 1

$ echo hello | piping-duplex aaa bbb
1
2
3
4
5
6
7
8
9
10

Person B

$ seq 10 | piping-duplex bbb aaa | base64
aGVsbG8K

NOTE: aGVsbG8K is base64-encoded "hello\n".

Grammar

piping-duplex <upload path> <download path>

Example SSH

Here is an example to use SSH over HTTPS via Piping Server.

In server host, type as follows.

socat 'EXEC:piping-duplex aaa bbb' TCP:127.0.0.1:22

In client host, type as follows.

socat TCP-LISTEN:31376 'EXEC:piping-duplex bbb aaa'

In another terminal in client host, type as follows.

ssh -p 31376 localhost

End-to-end encryption

You can use passphrase-based end-to-end encryption with --symmetric or -c option.

piping-duplex -c aaa bbb

Specify Piping Server

You can specify Piping Server with --server or -s option.

piping-duplex -s https://piping.glitch.me aaa bbb

OR

specify with $PIPING_SERVER environment variable as follows.

export PIPING_SERVER=https://piping.glitch.me

Help

Duplex communication over Piping Server

Usage:
  piping-duplex [flags]

Flags:
  -h, --help            help for piping-duplex
  -s, --server string   Piping Server URL (default "https://ppng.io")
  -c, --symmetric       use symmetric passphrase protection
  -v, --version         show version

go-piping-duplex's People

Contributors

dependabot[bot] avatar nwtgck avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

naerchang2 xinzhg

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.