Skip to content

Enhance Security: Add Stronger Password Encryption#120

Open
RonakYadav21 wants to merge 2 commits intojaygajera17:master2from
RonakYadav21:feature/contribution
Open

Enhance Security: Add Stronger Password Encryption#120
RonakYadav21 wants to merge 2 commits intojaygajera17:master2from
RonakYadav21:feature/contribution

Conversation

@RonakYadav21
Copy link
Copy Markdown

Changes Made

Implemented password encryption using Spring Security’s PasswordEncoder.

Updated User model and userDao to store encrypted passwords instead of plain text.

Modified UserController to ensure password encryption during registration.

Adjusted SecurityConfiguration to validate encrypted passwords during login.

🛡️ Why This Change?

Previously, passwords were stored in plain text, which posed a major security risk.
This update ensures all user passwords are stored in encrypted form, protecting sensitive data and aligning with security best practices.

✅ Testing Done

Registered a new user → password is stored encrypted in the database.

Logged in with the encrypted password → authentication works successfully.

Verified no impact on existing features like registration and login.

Notes for Maintainers

No breaking changes introduced.

Schema remains unchanged; only password storage logic has been updated.

Please verify if further enhancements (like stronger hashing algorithms) are needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant