verify static method
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;
}