code: func SetPasswordHash(file, user, hash string) error {
  	if len(hash) == 0 {
  		return errors.New("you might want to rethink your hashing algorithm, it left you with an empty hash")
  	}
  	passwords, err := ParseHtpasswdFile(file)
  	if err != nil {
  		return err
  	}
  	passwords[user] = hash
  	return passwords.WriteToFile(file)
  }
docs: // SetPasswordHash directly set a hash for a user in a file