Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the Chats end-to-end Encrypted #6

Open
Hadeso-0 opened this issue Aug 6, 2023 · 0 comments
Open

Make the Chats end-to-end Encrypted #6

Hadeso-0 opened this issue Aug 6, 2023 · 0 comments

Comments

@Hadeso-0
Copy link
Owner

Hadeso-0 commented Aug 6, 2023

How to approach

  1. When creating the account, the user generates a public and private key pair and saves them in local storage.
  2. The user then sends the public key to the server alongside his credentials. THE PRIVATE KEY IS NOT SHARED WITH ANYONE
  3. The server receives the user's credentials and his public key, generates a certificate out of the public key, and saves the user in the server.
  4. Each time user_A wants to chat with user_B, the server sends user_B's certificate to user_A and vice versa. Each user saves the other's certificate in their local storage to be able to encrypt messages and send them.
  5. The ENCRYPTED messages are saved in Monge DB.

Ref:

Pre-reqs [ Encryption Algorithms ]:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant