hash static method

String hash(
  1. String password,
  2. Algorithm algorithm
)
override

Hashed the given plain-text password using the given algorithm.

Implementation

static String hash(String password, Algorithm algorithm) {
  return algorithm.process(password);
}