Skip to content

Hash emails #7

@nachiketdhamankar

Description

@nachiketdhamankar

Bug Report

Current Behavior
Currently, the userId is the email address of the user. This opens up possible PII leaks. The issue is to hash the email address and password before storing it in the DB.

Input Code
In the putMethod, the email address stored in the DB is the same one that's sent from the request.
It's expected that the email is hashed before storing it in the DB.

Expected behavior/code
Before the email enters the putMethod, it's expected that the email is hashed to avoid PII.
Choose a suitable hashing algorithm ( preferably with a suitable salt ). Do not forget to randomize the salt.

Additional context/Screenshots

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions