Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nour-karoui/secure-chat
An end to end encrypted chat app built using React, Express, Socket.io, Mongodb, Node.Js, LDAP & OpenSSL
https://github.com/nour-karoui/secure-chat
asymmetric-encryption chat chat-application encryption-decryption javascript ldap-authentication nodejs openssl private-key public-key-cryptography react realtime socket-io
Last synced: 4 months ago
JSON representation
An end to end encrypted chat app built using React, Express, Socket.io, Mongodb, Node.Js, LDAP & OpenSSL
- Host: GitHub
- URL: https://github.com/nour-karoui/secure-chat
- Owner: nour-karoui
- License: mit
- Created: 2021-05-23T11:14:33.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-08-09T22:43:00.000Z (over 3 years ago)
- Last Synced: 2023-03-07T03:36:48.306Z (almost 2 years ago)
- Topics: asymmetric-encryption, chat, chat-application, encryption-decryption, javascript, ldap-authentication, nodejs, openssl, private-key, public-key-cryptography, react, realtime, socket-io
- Language: JavaScript
- Homepage:
- Size: 281 KB
- Stars: 6
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Welcome to Secure Chat 👋
#### An end to end encrypted messaging Real time messaging app built using React, Express, Socket.io, Mongodb, Node.Js, LDAP & OpenSSL
### 🏠 [Homepage](https://github.com/nour-karoui/secure-chat)
![alt tag](https://user-images.githubusercontent.com/47257753/126567790-afcdae8b-27fc-4e9e-8b5b-efabcafb7067.png)
***NB: This work is heavily based on [Timothylp's work](https://github.com/TimothyIp/rr_challenge). Shout out to the amazing frontend he prepared.***
Features:
- User Account Creation/Login using LDAP
- Real-time chat using socket.io
- Tokens for API calls to backend
- Cookies for saved session on browser refresh
- Private Messaging with other users, all messages are end to end encrypted using asymmetric encryption## Installing
```
git clone https://github.com/nour-karoui/secure-chat .
npm install
npm start
cd server
npm install
npm start
Go to http://localhost:3001/
```***PS***: Before Starting the app, make sure:
**1. you have apache directory studio installed and running.
You can download it from [HERE](https://directory.apache.org/studio/downloads.html).
After running the apache directory studio, make sure to link it to our project in the file *server/config/ldap-client*.**
**2. you generate a self signed certificate that'll allow you to verify the identity of the users and generate their certificates, *(our self signed cetificate is saved in server/openssl/CA)*.**## How Does it work
1. When creating the account, the user generates a public and private key, and saves them in localstorage. the user sends the public key to the server alongside with his credentials.
*NEVER SHARE THE PRIVATE KEY WITH ANYONE*.
2. The server receives the user's credentials and his public key, he generates a certificate out of the public key and saves the user in the LDAP server.
3. Each time userA wants to chat with userB, the server sends userB's certificate to userA and vice versa.
Each user saves the other's certificate in their localstorage to be able to encrypt messages and send them.
4. The *ENCRYPTED* messages are saved in Monge DB.## Author
👤 **Nour**
* Github: [@nour-karoui](https://github.com/nour-karoui)
* LinkedIn: [@nourkaroui](https://www.linkedin.com/in/nourkaroui/)## 🤝 Contributing
Contributions, issues and feature requests are welcome!
Feel free to check [issues page](https://github.com/nour-karoui/secure-chat/issues)## Show your support
Give a [STAR](https://github.com/nour-karoui/secure-chat) if this project helped you!
## 📝 License
* Copyright © 2021 [Nour](https://github.com/nour-karoui).
* This project is [MIT](https://github.com/nour-karoui/secure-chat/blob/master/LICENSE) licensed.***
_This README was generated with by [readme-md-generator](https://github.com/kefranabg/readme-md-generator)_