verify static method

bool verify(
  1. String password,
  2. String hashedPassword
)

verity the password with input password and stored hash string

Hash.verify('secret', '<hashedString>');

Implementation

static bool verify(String password, String hashedPassword) {
  return BCrypt.checkpw(password, hashedPassword);
}