Trisha-tech / OnlineBookSales

This project named Online Book Sales - Backend deals with developing an e-commerce website for Online Book Sale. It provides the user with a catalog of different books available for purchase in the store. In order to facilitate online purchase, a shopping cart is provided to the user.
https://book4u-j5au.onrender.com/
MIT License
139 stars 239 forks source link

[Feature Request]: Encrypt Passwords Before Storing Them #350

Open iamsohelx opened 1 month ago

iamsohelx commented 1 month ago

Is there an existing issue for this?

Feature Description

Hey @Trisha-tech In your website you are directly storing users password without encrypting it first. This would an serious issue because users data is not secure. anyone can see their passwords.

Solution

I can fix this issue by encrypting the password before storing it in database. using Bcrypt, it will make your platform more secure.

Use Case

Encrypting Passwords

Benefits

It Will make the platform more secure

Add ScreenShots

hash7

Priority

High

Record

github-actions[bot] commented 1 month ago

Hi there! Thanks for opening this issue. We appreciate your contribution to this open-source project. We aim to respond or assign your issue as soon as possible.

iamsohelx commented 1 month ago

Hey @Trisha-tech @Suman373 i can help you to fix this issue and make your platform more secure, could you please assign this task to me

Suman373 commented 1 month ago

@iamsohelx bcrypt is already been used to hash the password. Check models/customerSchema.js pre method.