verify static method

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

Checks if the given plain-text password matches the given encoded hash.

Implementation

static bool verify(String password, String hash) {
  final algorithm = Algorithm.decode(hash);
  return algorithm.process(password) == hash;
}