Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ishivanshgoel/securechat-app
Backend for End-to-end encrypted chat application. https://github.com/ishivanshgoel/securechat
https://github.com/ishivanshgoel/securechat-app
crypto express mongodb mongoose nodejs rsa-cryptography socket-io
Last synced: 4 days ago
JSON representation
Backend for End-to-end encrypted chat application. https://github.com/ishivanshgoel/securechat
- Host: GitHub
- URL: https://github.com/ishivanshgoel/securechat-app
- Owner: ishivanshgoel
- License: mit
- Created: 2021-09-18T15:45:59.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-04-19T20:05:34.000Z (over 2 years ago)
- Last Synced: 2024-10-12T12:12:34.498Z (about 1 month ago)
- Topics: crypto, express, mongodb, mongoose, nodejs, rsa-cryptography, socket-io
- Language: JavaScript
- Homepage: https://ishivanshgoel.github.io/securechat/
- Size: 668 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Secure Chat
This repository contains backend services for End-2-End encrypted chat application.
- https://ishivanshgoel.github.io/securechat/## Overview
End-to-end encrypted messaging means that the users within that specific chat can only read messages sent between two people.To enable this, the messages that are sent are encrypted before leaving a user's device, and can only be decrypted by the intended recipient (end-user).
Real-time chat applications have grown tremendously. Most organizations have adopted them for communication. For security reasons, the messages exchanged over the network must be encrypted.
## Technologies Used
- Node.js
- MongoDB
- Socket.io
- RSA Algorithm (Public Key Cryptography)## RSA Algorithm
The RSA algorithm is an asymmetric cryptography algorithm; this means that it uses a public key and a private key (i.e two different, mathematically linked keys). As their names suggest, a public key is shared publicly, while a private key is secret and must not be shared with anyone.## HLD
## Setup
- Create `.env` file in root directory
```
DB_URI=mongodb+srv://<--- uri ---->?retryWrites=true&w=majorityTOKEN_KEY=<--- secret key for JWT tokens ---- >
PORT=<-- PORT number for express server ---->
```## LICENCE
MIT LicenseCopyright (c) 2021 Shivansh Goel
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.