class

Pwgen::Generator

Inherits Reference < Object

Abstract base class for password generators.

Subclasses must implement the generate method to create passwords according to their specific algorithm (phoneme-based or random).

Instance methods

generate(length : Int32, flags : Feature, remove : String | Nil) : String

Generates a password with the specified parameters.

  • length: Length of the password to generate
  • flags: Feature flags controlling password characteristics
  • remove: Optional string of characters to exclude from generation

Returns a String containing the generated password.

Source