Hashed the given plain-text password using the given algorithm.
password
algorithm
static String hash(String password, Algorithm algorithm) { return algorithm.process(password); }