You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating the account, the user generates a public and private key pair and saves them in local storage.
The user then sends the public key to the server alongside his credentials. THE PRIVATE KEY IS NOT SHARED WITH ANYONE
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.
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.
How to approach
Ref:
Pre-reqs [ Encryption Algorithms ]:
The text was updated successfully, but these errors were encountered: