First implementation of Hasher.