Giter Site home page Giter Site logo

otpchat's Introduction

OTPCHAT

A simple chat program which uses one-time pads for encryption. Each user has their own personal key which their client uses to encrypt the messages. The key must be transferred physically, e.g. on a USB drive. Receiving users must have a copy of the sender's key in order to decrypt the data.

Use at your own risk! There is no guarantee that the program is secure. Furthermore, there is no warranty of any kind. See the "LICENSE" file for legal details.

The program in use

Usage

Generating keys

otpchat --generate <size> <new-key-file>

Generates a key from /dev/urandom.

Generate at least two keys, one for yourself and one for the person you want to chat with. Transfer both of the keys to the person on a physical medium such as a thumb drive.

Chatting

In all cases, you have to specify your local key and the expected remote key.

otpchat <local-key> <remote-key> [port]

Starts listening on port 14137 unless another port is specified.

otpchat <local-key> <remote-key> <address>[:<port>]

Attempts to connect to the given address and port. If the port isn't specified, defaults to port 14137.

Commands

A command is preceded by '/'. For example, the command to quit the program is "/quit".

Command Arguments Function
quit Quits the program
connect address[:port] Connects to the given address
disconnect Disconnects from the current session
listen [port] Starts listening for connections
endlisten Stops listening for connections

otpchat's People

Contributors

juliusikkala avatar

Stargazers

 avatar  avatar

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.