Giter Club home page Giter Club logo

babble's Introduction

Hi there ๐Ÿ‘‹

babble's People

Contributors

hadeso-0 avatar

Watchers

 avatar

babble's Issues

Make the Chats end-to-end Encrypted

How to approach

  1. When creating the account, the user generates a public and private key pair and saves them in local storage.
  2. The user then sends the public key to the server alongside his credentials. THE PRIVATE KEY IS NOT SHARED WITH ANYONE
  3. The server receives the user's credentials and his public key, generates a certificate out of the public key, and saves the user in the server.
  4. Each time user_A wants to chat with user_B, the server sends user_B's certificate to user_A and vice versa. Each user saves the other's certificate in their local storage to be able to encrypt messages and send them.
  5. The ENCRYPTED messages are saved in Monge DB.

Ref:

Pre-reqs [ Encryption Algorithms ]:

Add Features to send Files/Images via messages

Implement the functions to send files in messages.

How to approach

  1. When a user adds a file, the UI must store it in some Array<File>.
  2. User can add multiple files and edit the File Array via a cross button on the top-right corner of the file thumbnail.
  3. When the user clicks send, the client app must upload each file to the cloud storage (Firebase storage in this case), and send a new chat with __type = type of file [ to appropriately render it on the app ] and content = LINK OF THE UPLOADED DOCUMENT.

Todo-

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.