Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tarush-r/End-To-End-Ecrypted-Chat-App
A secure end to end encrypted chat app made using flutter, nodeJs, mongoDB and sockets.
https://github.com/tarush-r/End-To-End-Ecrypted-Chat-App
chat-application end-to-end-encryption flutter mongodb node-js nodejs secure socket-io
Last synced: 3 months ago
JSON representation
A secure end to end encrypted chat app made using flutter, nodeJs, mongoDB and sockets.
- Host: GitHub
- URL: https://github.com/tarush-r/End-To-End-Ecrypted-Chat-App
- Owner: tarush-r
- Created: 2021-01-21T14:55:38.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-10-13T06:42:44.000Z (about 3 years ago)
- Last Synced: 2024-06-19T06:05:51.937Z (5 months ago)
- Topics: chat-application, end-to-end-encryption, flutter, mongodb, node-js, nodejs, secure, socket-io
- Language: Dart
- Homepage:
- Size: 10.7 MB
- Stars: 53
- Watchers: 5
- Forks: 14
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Cypher
[![](https://img.shields.io/badge/Made_with-Flutter-orange?style=for-the-badge&logo=flutter)]( https://flutter.dev/ "Flutter")[![](https://img.shields.io/badge/Made_with-Javascript-orange?style=for-the-badge&logo=javascript)](https://www.javascript.com/ "Javascript")[![](https://img.shields.io/badge/Made_with-NodeJS-yellow?style=for-the-badge&logo=nodejs)](https://nodejs.org/en/ "NodeJS")[![](https://img.shields.io/badge/Made_with-MongoDB-green?style=for-the-badge&logo=MongoDB)](https://www.mongodb.com/ "MongoDB")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.*
3. Send the first 24 bytes from step 2 i.e the password to the server as the user's password.
4. Generate a public/private key pair.
5. Encrypt the private key with the encryption key it derived from the password hash using a symmetric encryption algorithm.
6. 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-
```html
npm run dev
```### Tech stack
`Backend` : Nodejs, sockets
`Database`: Mongodb
`Frontend` : FlutterDeveloped with :heart: by Tarush Rajput, Sakshi Pandey, Rahil Parikh, Akshat Gandhi and Kunal Rane