Skip to content

Conversation

maytlead
Copy link
Owner

  • Use hashed password for seeding the data

  • Before saving the password, hash it

  • Compare the password with hash method

  • Use identical error message for both username, and password to not expose which data is not correct to the attacker

  • Regenerating the session whenever the user log in

Plain Text Password
A2-1 Plain Text Password

Hashed Password
A2-1 Hashed Password

- Use hashed password for seeding the data
- Before saving the password, hash it
- Compare the password with hash method
- Regenerating the session whenever the user log in
@maytlead maytlead merged commit 5b9e29f into develop Oct 25, 2023
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.

2 participants