Blog-App-using-MERN-stack icon indicating copy to clipboard operation
Blog-App-using-MERN-stack copied to clipboard

Add salt to password hashing and improve security

Open Anshv784 opened this issue 4 months ago • 2 comments

Fixes #49

Problem:

  • Passwords were hashed without an explicit salt, making them weaker.

Solution:

  • Added bcrypt salt (10 rounds) to the signUp function.
  • Updated user.save() to use await for proper error handling.
  • Password verification remains secure with compareSync.

Anshv784 avatar Sep 07 '25 17:09 Anshv784

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
blog-app-using-mern-stack Error Error Sep 7, 2025 5:02pm

vercel[bot] avatar Sep 07 '25 17:09 vercel[bot]

@Anshv784 resolve the conflict

khushi2706 avatar Nov 02 '25 15:11 khushi2706