Skip to content

PasswordGenerator generator

Generate secure passwords with configurable complexity.

Why: Use PasswordGenerator for authentication test fixtures that must satisfy explicit character-class complexity; never use generated values as production credentials.

Category: net.

Output: str.

1
<key name="value" generator="PasswordGenerator(length=16, include_special=True, include_numbers=True, include_uppercase=True)"/>

Parameters

  • length: int; Default 16 โ€” Total password length; must meet the implementation's minimum.
  • include_special: bool; Default True โ€” Whether at least one supported special character is included.
  • include_numbers: bool; Default True โ€” Whether at least one numeric character is included.
  • include_uppercase: bool; Default True โ€” Whether at least one uppercase character is included.