To generate random and strong passwords.
Reason this release was yanked:
Latest versions are bug free
Project description
To generate random and strong passwords.
Installation
pip install genpasswd
Usage
To generate a random password and print it on the screen.
from genpasswd import *
arg = Password()
passwd = arg.genPass()
print(passwd)
Some Other Examples
To set the password length, Default password length is 8-16
.
from genpasswd import *
arg = Password(length=5)
passwd = arg.genPass()
print(passwd)
Whether the characters in passwords repeat or not,
Default value of repeat
is True
.
from genpasswd import *
arg = Password(repeat=False)
passwd = arg.genPass()
print(passwd)
To ignore Characters, Numbers or special Characters in passwords.
from genpasswd import *
# to ignore or avoid alphabets
arg = Password(ignore='alphabets')
passwd = arg.genPass()
print(passwd)
To include Characters, Numbers or special Characters in passwords.
from genpasswd import *
# to include numbers in a password
arg = Password(include='numbers')
passwd = arg.genPass()
print(passwd)
To create a password only using Characters, Numbers or special Characters.
from genpasswd import *
# to generate a password only using characters 'abcde'
arg = Password(only='abcde', length=5)
passwd = arg.genPass()
print(passwd)
You can include, ignore or using only 'alphabets'
, 'numbers'
, 'uppercase'
, 'lowercase'
, 'symbols'
in generating password.
Issues
If you encounter any problems, please file an issue along with a detailed description.
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
Hashes for genpasswd-1.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d86d312012354ead70623eb86fe47c9790fb1c767aac2d5c7c9abe3128b3f285 |
|
MD5 | 94845afe82c38546c541e9d08d049897 |
|
BLAKE2b-256 | bc30a7844182d9e24809c6adfcdd6b4ef28bbc73dddf00b2551ac5f18eb49121 |