Hyperbeam
An end-to-end encrypted pipeline for the Internet, utilizing the Hyperswarm
and Noise Protocol for secure communications.
Installation
Install with npm:
Basic usage
CLI
Step 1: Install Hyperbeam as a global npm package.
Step 2: Generate a passphrase, using the following command on a machine
e.g. output: neznr3z3j44l7q7sgynbzpdrdlpausurbpcmqvwupmuoidolbopa
Step 3: Then on another machine run the following command
API
const stream = new Hyperbeam([key][, options])
Makes a new Hyperbeam duplex stream.
This stream will auto-connect to another peer using the same key with an end-to-end encrypted tunnel. When the other peer writes it's emitted as data
on this stream. Likewise, writes to this stream stream are emitted as data
on the other peer's stream.
If a
key
is not passed into the constructor (the passphrase), one will be generated and put onstream.key
options
include:
Option | Description |
---|---|
| A DHT instance. Defaults to a new instance |
stream.key
The passphrase used by the stream for connection.
Last updated