0.0.1-next.12 • Published 3 years ago

ogre-router v0.0.1-next.12

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Ogre Router

CURRENTLY IN DEVELOPMENT

CURRENTLY REQUIRES THE USE OF Ogre-Router-Server

Lint and test

Deploy to Github pages

This project hopes to create anonymous routing of data through the standard (chromium) browser.

It was inspired by Discord, Tor, node-Tor among others. The routing mechanism is inspired by Tor's onion routing, but is not exactly the same (which is why the name was changed to ogre, though they both have layers).

Goal

The goal of this project is to enable anonymous data transfer through the web.

When an ogre router is created it will automatically join the network. It can join different networks depending on where ogre-router-server is hosted. Once it joins the network it will be able to send anonymous messages to other ogre routers on the network.

The way it achieves this is similar to how the onion router works. It will create a circuit of ogre routers in the network and pass the message through them until it reaches the destination. Messages will be encrypted in layers and each layer will be peeled off as it goes through each router.

Each node in the network only knows it got a message and where to pass the message to. It won't know the target/source of the message unless it itself is the target/source. Message data will only be transfered between ogre-routers using a WebRTC data channel. The signaling server/da server will not touch any actual message contents and only exists to facilitate connections between ogre-routers.

Onion Routing

The onion router or TOR provides anonymous browsing to the web or onion sites.

Put simply it works by routing your traffic through different onion routers. Your traffic is encrypted in several layers and as it goes through each onion router they remove a layer of encryption.

You can read more about technical specifications on TOR online.

img

Ogre Routing

This project currently aims to anonymously transfer data through the web in a similar way.

Below is an example flow diagram of a message being sent from Alice to Bob with Jill and John also connected to the network.

img

  1. Alice connects to the directory authority/signaling server.
    • This connection is established through websockets.
    • Connecting to the directory authority is neccessary as it lets you know who is currently connected to the network. This lets you know which nodes can be included in the circuit.
  2. Alice creates a circuit of routes the message will travel between. Each route is a user on the network. Yes. This does mean someone connected to the network will be routing random user's messages.
    1. After creating a circuit Alice will create the layers of encryption around her message.
    2. After encrypting her message she will send it to the first user on her circuit.
  3. When Jill gets a message she will decrypt a layer of the message. Then she will send it to the next user in the circuit, John.
  4. When John gets the message he will do the same thing as Jill and send it to Bob
  5. When Bob finally gets the message from John, he can decrypt it and find out the message Alice sent and that it came from alice.

This is the basic idea behind this project.

Usage

Coming Soon

TODO

Featrues

  • Generate public and private key as part of user identity and send public key to server.
  • Send public keys with peerlist.
  • Add configurable fields to user object. (ex. Image)
  • Wrap messages with the public key encryption.
  • Unwrap a message using private key
  • Send message recieved confirmation
  • Add support for groups

Known Issues

  • WebRTC sending double messages sometimes.

Security

Not Implemented Yet.

  • Currently each user has no cryptographic material.
  • The ogre-router-server does not currently store any public keys.
  • WebRTC Offers/Ansers are sent to the signaling server unencrypted
  • Ogre Layering is only simple JSON.stringify & JSON.parse.

Frequently Asked Questions

Coming Soon

0.0.1-next.11

3 years ago

0.0.1-next.6

3 years ago

0.0.1-next.10

3 years ago

0.0.1-next.8

3 years ago

0.0.1-next.12

3 years ago

0.0.1-next.7

3 years ago

0.0.1-next.9

3 years ago

0.0.1-next.4

3 years ago

0.0.1-next.3

3 years ago

0.0.1-next.2

3 years ago

0.0.1-next.1

3 years ago

0.0.1-next.0

3 years ago

0.0.1-rc1

3 years ago