Random password generator
Project description
Random Password Generator
Python package to generate random passwords.
Usage
- Install the package
pip install randompw-generator
- Import the package
from rpg import RandomPassword
- Create an instance of the RandomPassword and generate password
pw = RandomPassword()
pw.generate()
Configuration
The default length of the password is 15, it can be changed at the time of instantiation.
# It will generate a password of the length of 20
pw = RandomPassword(20)
pw.generate()
Length can also be increased by specifying the number of each type of character.
example :
pw = RandomPassword()
# Set the number of lowercase character to 10.
pw.set_lower(10)
# Set the number of lowercase character to 9.
pw.set_upper(9)
# Set the number of lowercase character to 3.
pw.set_digits(3)
# Set the number of lowercase character to 4.
pw.set_spchars(4)
# It'll generate a password contaning 10 lowercase
# 9 upppercase, 3 digits and 4 special characters.
pw.generate()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file randompw-generator-1.0.2.tar.gz.
File metadata
- Download URL: randompw-generator-1.0.2.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.7.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f50b84a705a2642c50652e2cdc94cf282941b95fc2410a6c1dbaaf4d34a6ba0
|
|
| MD5 |
eda6ff93216b40ffe611d7f2b807da4c
|
|
| BLAKE2b-256 |
dccf056d8c7d022ce5591d610ae0697f4b44df8fdb950d7d5f379561dd604e8f
|
File details
Details for the file randompw_generator-1.0.2-py3-none-any.whl.
File metadata
- Download URL: randompw_generator-1.0.2-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.7.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b6dc79cbb90abb82e4632ee25b091bd3990fb4263af6a6bd9dbee80cc945cc3
|
|
| MD5 |
ef6d8c856fb4e4d8328e657ab1393b0b
|
|
| BLAKE2b-256 |
dc235e89b88750aa8542d6f67f259d6de83fdc9936317ad456ad2e018937a99f
|