An end to end encrypted messaging Real time messaging app built using React, Express, Socket.io, Mongodb, Node.Js, LDAP & OpenSSL
🏠 Homepage
NB: This work is heavily based on Timothylp's work. 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
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. 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).
- 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.
- 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.
- 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.
- The ENCRYPTED messages are saved in Monge DB.
👤 Fares
- Github: @hamoudaferes
- LinkedIn: @Hamouda Fares
Contributions, issues and feature requests are welcome!
Feel free to check issues page
Give a STAR if this project helped you!
This README was generated with by readme-md-generator