code: func Check(password string) error {
  	if len(password) < passwordMinLength {
  		return ErrInvalidPassword
  	}
  	_, err := keyderivation.Hash(password)
  	if err != nil {
  		log.Debug("Failed to hash password: ", err)
  		return err
  	}
  	return nil
  }
docs: // Check to see if a password is valid for a user.