##### A simple and custom random password generator.
* Generate a simple password of default length 6-16.
* Generate a password with custom properties.
* Generate a password from given characters.
* Generate Non Duplicate Password
## Usage
* Install the package.
* Import the package.
* Create an instance
* Modify the default properties. (Optional)
* Generate the password (Default length of password 6-16 unless specified via properties).
``` bash
pip install random-password-generator
```
``` python
from password_generator import PasswordGenerator
pwo = PasswordGenerator()
pwo.generate()
```
## Configuration
| property | Description | Default |
| ---------- |------------------------------------------------------| ------- |
| minlen | Minimum length of the password | 6 |
| maxlen | Maximum length of the password | 16 |
| minuchars | Minimum upper case characters required in password | 1 |
| minlchars | Minimum lower case characters required in password | 1 |
| minnumbers | Minimum numbers required in password | 1 |
| minschars | Minimum special characters in the password | 1 |
## Generate a custom password
``` python
pwo = PasswordGenerator()
# All properties are optional
pwo.minlen = 30
pwo.maxlen = 30
pwo.minuchars = 2
pwo.minlchars = 3
pwo.minnumbers = 1
pwo.minschars = 1
pwo.generate()
```
## Generate a password from given characters
``` python
pwo = PasswordGenerator()
# It takes two arguments
# required characters and length of required password
pwo.shuffle_password('sdafasdf#@&^#&234u8', 20)
```
## Generate Non Duplicate Password
``` python
pwo = PasswordGenerator()
# length of required password
pwo.shuffle_password(20)
```
## License
* MIT
Metadata
Release files for random-password-generator 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| random-password-generator-1.0.1.tar.gz | 3.8 kB | Without provenance | Details for random-password-generator-1.0.1.tar.gz |
Release files / random-password-generator-1.0.1.tar.gz
| Download URL | random-password-generator-1.0.1.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
df5e0c054f9bc878f2c9b860a6a4f84f91566a6eb67674ad767fedc29d4df8fb
|
|
BLAKE2b-256 checksum How to use checksums |
c8aaff0b580fded3e612f63792b5353dd4807cab136f5e19e7d28916030d1f35
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for random-password-generator 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.