GithubHelp home page GithubHelp logo

bagasstrongman / chat-e2ee Goto Github PK

View Code? Open in Web Editor NEW

This project forked from muke1908/chat-e2ee

0.0 1.0 0.0 3.56 MB

End-to-end encrypted disposable chat sessions, exchange sensitive information with peer safely and securely.

Home Page: https://chat-e2ee-2.azurewebsites.net/

License: Apache License 2.0

Shell 0.41% JavaScript 2.09% TypeScript 81.45% CSS 14.52% HTML 1.26% Dockerfile 0.27%

chat-e2ee's Introduction

chat-e2ee

Disposable chat session: this app will allow two mutually agreed users to have a chat in end-to-end encrypted environment. The app itself doesn't track you or ask any infromation from you. Data is owned by only you and only while chatting. Your private key is generated on your device and never leaves your device. This is not a replacement of your usual chat application.

The project is still in development phase and open for contribution.
Demo: https://chat-e2ee-2.azurewebsites.net

Open in Gitpod


Code Smells

Features

  1. No login/signp - the end users don't identify themselves .
  2. Data is not stored on any remote server, encrypted data is just relayed to other users, the data can't be decrypted by any man in the middle.
  3. No history i.e. once chat is closed the data is not recoverable, however encrypted data can be found on memory trace. Read More

โญ JS SDK

Spin up your own frontend: JS SDK and use chat-e2ee backend as service - @chate2ee/service
๐Ÿ“ƒ Documentation


For installation instruction, go to developer section.

How to initiate chat

  1. Generate unique link.
  2. Share the link or PIN with the person you want to chat with.
  3. Start chatting.
  4. The messages are end-to-end encrypted hence, no one can decrypt your message other than you.

How the encryption works

  1. Alice and Bob generate a public and private key pair.
  2. Alice and Bob share their public keys with each other.
  3. Alice encrypts her message with Bob's public key and sends it to Bob.
  4. Bob receives the encrypted message and decrypts it with his private key.

In this way, no one else can decrypt the message because your private key is never exposed/shared to the internet. More detailed explanation: https://www.youtube.com/watch?v=GSIDS_lvRv4&t=1s

We are using browser window.crypto library for encryption.


Flow

flow


๐Ÿ’ป For developers

Open Source Love GitHub last commit Quality Gate Status Gitter

Frontend (UI):
This project includes a light weight frontend UI - bootstrapped with create-react-app. The FE client is located in ./client folder.

Backend:
The backend runs on express/nodejs. In production mode, express server exposes the API endpoints and serve the static frontend from ./client/build.

JS SDK:
@chat-e2ee/service - located in ./service - A SDK that client uses to interact with backend. More info: Readme

Custom frontend
Import @chat-e2ee/service SDK in your client project and build your own chat client.

Installation

  1. Fork this repository by clicking on the fork button on the top of this page. This will create a copy of this repository in your account.
  2. Now clone the forked repository to your machine.
  3. Run npm install in root dir i.e. inside cloned repo.
  4. Run npm run dev to spin up your client/server. This will run your react app in dev mode and server in watch mode by nodemon.

โ—โ—Important: If you are making changes in ./service i.e. @chat-e2ee/service, make sure you run npm run build-service-sdk to reflect changes.

NOTE: by default create-react-app runs webpack-dev-server on port 3000. The server is configured to run on 3001 port. So make sure that these ports are not blocked on your system.

Important:
Check .env.sample to configure your .env file.
Please use node 16 or above.

To start with docker read the instructions.
For native build read the instructions.

Folder structure

  • The FE client is located in ./client which is coupled with the backend.
  • All the backend controllers go to ./backend folder.
  • Client uses a package @chate2ee/service to communicate with the backend. Located in ./service.
  • Express instance is on ./app.js.
  • Entry point is ./index.js.

Please follow the convention for the commit message.
https://github.com/conventional-changelog/commitlint/#what-is-commitlint

Example:
git commit -m"feat: some relevant message"


โœจ Contributors


๐Ÿ” Cryptographic notice

This distribution includes cryptographic software. The country in which you currently reside may have restrictions on the import, possession, use, and/or re-export to another country, of encryption software. BEFORE using any encryption software, please check your country's laws, regulations and policies concerning the import, possession, or use, and re-export of encryption software, to see if this is permitted. See http://www.wassenaar.org/ for more information.

The U.S. Government Department of Commerce, Bureau of Industry and Security (BIS), has classified this software as Export Commodity Control Number (ECCN) 5D002.C.1, which includes information security software using or performing cryptographic functions with asymmetric algorithms. The form and manner of this distribution makes it eligible for export under the License Exception ENC Technology Software Unrestricted (TSU) exception (see the BIS Export Administration Regulations, Section 740.13) for both object code and source code.

chat-e2ee's People

Contributors

muke1908 avatar dependabot[bot] avatar suman313 avatar encrypted-soul avatar allcontributors[bot] avatar nafees87n avatar j-16 avatar audreykj avatar narasimha1997 avatar jonatan5524 avatar tskull01 avatar salonigoyal2309 avatar jradha11 avatar alirezariahi avatar manny525 avatar estefysc avatar darksoul11 avatar ming-tsai avatar joydeep2683 avatar fabisdr avatar aditya-13 avatar codebysid avatar firtysh avatar ryuuko avatar tomyotwongjai avatar lonewarrior581 avatar amreekminocha avatar ddsuhaimi avatar diamemorreau avatar drmartell 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.