Skip to content
This repository was archived by the owner on Oct 18, 2022. It is now read-only.
This repository was archived by the owner on Oct 18, 2022. It is now read-only.

Do not store encryption keys in the frontend. #21

@Samyak2

Description

@Samyak2

The issue

  • Currently, when the user selects a chat, along with the messages even the public and private keys are taken from the database
  • These keys are stored as global variables in JS.

Possible solutions

  • One possible solution is to query the keys as and when required i.e., get the public key when sending a message and private key when receiving one.
  • If there is a better way to do this, please mention them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestsecurityPossible security risk

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions