matches abstract method
Checks if the raw password matches the encoded password.
Returns true
if the passwords match, false
otherwise.
This method is used to verify user credentials during login.
It is important to use a secure hashing algorithm to protect
against brute-force attacks and rainbow table attacks.
The encodedPassword
should be the hashed version of the password
stored in the database.
Implementation
bool matches(String rawPassword, String encodedPassword);