Giter VIP home page Giter VIP logo

6eer's Introduction

6eer

About

Test code to send an encrpyted message over ipv6. Keys are hardcoded, server listens on all ipv6 address, client will take an optional address, default connection is to "::1". Server by default listens on all ipv6 addresses.

Usage

C

Prerequisites

sudo apt install libsodium-dev

Build

cd c rm client server; gcc client.c -o client -lsodium && gcc server.c -o server -lsodium

Run

./server ./client

JS/TS

Prerequisites

Developed on nodejs 15.6.0

npm install

Build

npm run build

Run

npm run client npm run server

Both commands can take a a parameter to listen on or connect to.

Reference

Networking

IPV6 c code is from here: https://gist.github.com/jirihnidek/388271b57003c043d322

Node.js client/server code started from here: https://gist.github.com/sid24rane/2b10b8f4b2f814bd0851d861d3515a10 https://nodejs.org/dist/latest-v15.x/docs/api/net.html

Crypto

https://doc.libsodium.org/public-key_cryptography/sealed_boxes https://github.com/dchest/tweetnacl-js/wiki/Examples

6eer's People

Watchers

 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.