Giter VIP home page Giter VIP logo

flutter_cypher's Introduction


Cypher

Easy, secure, end to end encrypted (E2EE) messenger.

Cypher, is an end-to-end encrypted secured instant messaging application that would encrypt the user’s chats and media with the use of various secured methods that would prevent any kind of data breach.

  • Every message is encrypted from sender to recipient. There is no way to send a plain text message in them and Cypher's servers cannot decrypt them.

The Cypher Encryption Scheme has a couple key requirements that secure your data.

  1. The server must never know your password.
  2. The server must never know your private key.

How the Cypher Encryption Scheme Works

For successful end to end encryption, private-public key pair is used. It is important to store these in such a way that server doesn't have full information required to decrypt messages stored in server. The method used to securely store these keys is as follows.

Upon Registration

When a user registers, the client must:

  1. Hash the password that the user entered, using a cryptographically secure, one way hashing algorithm.
  2. Derive an encryption key and a remainder from the hash. Neither the key nor the password should be practically derivable from just the remainder. The method Cypher uses:
  • Remove some portion from the hash as the key. The remaining portion becomes the remainder. Cypher removes the first 24 bytes as user's password and the next 16 bytes as encryption key.
  1. Send the first 24 bytes from step 2 i.e the password to the server as the user's password.
  2. Generate a public/private key pair.
  3. Encrypt the private key with the encryption key it derived from the password hash using a symmetric encryption algorithm.
  4. Send the encrypted private key and clear text public key to the server.

Upon Login

When a user logs in, the client must:

  1. Complete steps 1-3 of the registration process in order to authenticate the user.
  2. Retrieve the user's encrypted private key and clear text public key from the server.
  3. Use the key taken from the password hash to decrypt the private key.

Functions implemented

  • End to end encrypted chatting
  • Schedule message for any user from your contact bbook who has registered into our application
  • Agora video call
  • Media and location sharing
  • Self profile update or visit other user's profile
  • Forgot password/reset password
  • Delete chats with a particular user
  • Delete account
  • Logout from current device or from all devices user has logged into

Screenshots


            

Agora video call and call log

      

Message scheduling for a contact and delete chat with a particular contact

            

      

Self profile update and view other user's profile

      

Login, sign up and all users from contact book of logged in user who have registered into our app listed

            


Installation

Client

Clone the repository and navigate to chatapp_client folder and run the flutter application after giving backend localhost/ngrok url in urls.dart

Backend

Clone the repository, navigate to chatapp_backend folder and run the following command-

  npm run dev

Tech stack

Backend : Nodejs, sockets
Database: Mongodb
Frontend : Flutter

flutter_cypher's People

Contributors

sakship31 avatar tarush-r avatar rahil-parikh 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.