abstract class Pwgen::Generator

Overview

Abstract base class for password generators.

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

Direct Known Subclasses

Defined in:

pwgen/generator.cr

Instance Method Summary

Instance Method Detail

abstract def 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.


[View source]