Generates an password hash from a secret provided.