Code Monkey home page Code Monkey logo

polyseme's Introduction

Polyseme

An implementation of "HOTP Indexed DNS" as conceptualized by munin written in Rust

polyseme

A Rust implementation of HOTP Indexed DNS

polyseme-zone-gen

USAGE:
    polyseme-zone-gen <SHARED_KEY> <DOMAIN> --input <input>

Used to generates the TXT records in the Zone file format, the output is NOT a valid zone file.
Do note that <DOMAIN> is merely used as postfix for the record names.

If you use a zone file for e.g. polyseme.example and would like to upload it to hello.polyseme.example you should set <DOMAIN> to hello

Example usage:

$ polyseme-zone-gen "this is not a rickroll" "rickroll" --input ./rickroll.mp4 > rickroll.zone

If no input is given STDIN is used

polyseme-fetch

Used to fetch a file hosted via polyseme

USAGE:
    polyseme-fetch [OPTIONS] <shared-key> <domain>

Example usage:

# This is a currently live and accessible server serving a MP4 over DNS
polyseme-fetch "why" "usuck.polyseme.eater.me" > u-suck.mp4

Implementation of Polyseme's HOTP Indexed DNS

Input file is base64 encoded and consumed in 255 byte size parts

Chunk name is generated by BASE32(HMAC-SHA256(shared-key, counter))
For every new chunk counter is incremented by 1

A chunk is a set of parts prefixed with a part containing a SHA256 of all other parts in the chunk. A chunk has a max size of 65_535 including length prefixes which all take a single byte.
When adding a part would grow the chunk above the max size, a new chunk should be started.

EOF is signaled by a part with a SHA256 of the shared-key.

polyseme's People

Contributors

the-eater avatar

Watchers

 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.