Skip to content

[Feature Request] Add strong password generator provider #2240

@Prg-maker

Description

@Prg-maker

Why this was implemented

The Faker library offers various fake data types, but it lacks a secure password generator. This feature was added to provide developers with a way to easily generate strong, secure, and realistic passwords for testing environments.

It helps to:

  • Prevent weak password patterns in seeded test data

  • Simulate real-world login/signup scenarios

  • Follow best practices by including different character classes (uppercase, lowercase, digits, symbols)

How to Use

password = fake.generate_password()
print(password)  # Example: 'G7@k!qM#9dP&z4tL'
Parameter Type Default Description
size int 16 Total length of the generated password

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions