matches abstract method

bool matches(
  1. String rawPassword,
  2. String encodedPassword
)

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);