Giter VIP home page Giter VIP logo

s2c's Introduction

S2C

A secret video chat "in terminal" using PGP encryptions and AES encryptions. No Browser needed !

Features

  • Video + Audio Chat in terminal

Requirements

  • Python (3.x is recommended)
  • Pip3
  • PyAudio

How to use

Installation

Install bindings librairies for pyaudio !

  • On linux/Mac : sudo apt install -y portaudio19-dev and sudo apt install -y pyaudio

Because it's a pip package, you need to install it using pypi !

pip install s2c

Manual

Client

The manual of s2c :

usage: s2c [-h] [-s SESSION_ID] [-c CLIENT_ID] [-k KEY] [-i IP] [-p PORT]

optional arguments:
  -h, --help            show this help message and exit
  -s SESSION_ID, --session_id SESSION_ID
                        The sesion_id, if noting is provide,it will generate
                        for you
  -c CLIENT_ID, --client_id CLIENT_ID
                        Your id or name in the session, if noting is
                        provide,it will generate for you
  -k KEY, --key KEY     To provide the custom key for the AES encryption
  -i IP, --ip IP        The host of the server where websockets will transits
  -p PORT, --port PORT  The port of the host

For example : $s2c -s 1 -c 1 -i 127.0.0.1 -p 1122 Will connect you to the server '127.0.0.1:1122' in the session '1', your id is '1' !

Server

NB : At this step, the server should be running on ip : 127.0.0.1 and on port 1122, don't forget to allow the port using ufw (on linux)

To run the server :

s2c_server -p 1122

From sources

How to install

Install bindings librairies for pyaudio !

  • On linux/Mac : sudo apt install -y portaudio19-dev and sudo apt install -y pyaudio

Clone and set the virtualenvironment :

# We clone the repository
git clone https://github.com/sanix-darker/s2c

# We Set the virtualenv
virtualenv -p python3 venv
source venv/bin/activate

# We install requirements
pip install -r requirements

How to launch

The server

The server take only one parameter, the port, where it's going to run !

python3 -m server.main -h

usage: main.py [-h] [-p PORT]

optional arguments:
  -h, --help            show this help message and exit
  -p PORT, --port PORT  The port where the server will be running

The Client

Just as the section Manual under How to use, you just have to replace s2c by python3 -m app.main

About

s2c's People

Contributors

sanix-darker 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.