-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed as not planned
Labels
Description
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 |