verify static method

bool verify(
  1. String raw,
  2. String hashed
)

Verifies the password by comparing raw input with hashed version

Implementation

static bool verify(String raw, String hashed) {
  return hash(raw) == hashed;
}