Bỏ qua

PasswordGenerator generator

Warning

The current page still doesn't have a translation for this language.

But you can help translating it: Contributing.

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.