genpasswd is a package to generate random passwords.
Reason this release was yanked:
Latest versions are bug free
Project description
Project Description
GenPasswd is a package to generate random and strong passwords.
Installation
Using command-prompt
pip install genpasswd
Usage
Import the library.
from genpasswd import password, pass_gen
This will generate a random password and print it on the screen.
arg = password()
passwd = pass_gen(arg)
print(passwd)
Some other options in generating password.
Getting password length
arg = password(length=5)
passwd = pass_gen(arg)
print(passwd)
Whether the characters in passwords repeat or not
# default value of repeat is 'y
arg = password(repeat='n')
passwd = pass_gen(arg)
print(passwd)
Characters to ignore in passwords
# to ignore alphabets
# you can also give 'numbers', 'uppercase', 'lowercase', 'symbols' to ignore then respectively
arg = password(ignore='alphabets')
# also give random unwanted characters (eg., ignore='abc' will ignore the lowercase 'a','b','c')
passwd = pass_gen(arg)
print(passwd)
Characters to include in passwords
# to include alphabets
# you can also give 'numbers', 'uppercase', 'lowercase', 'symbols' to include then respectively
arg = password(include='alphabets')
# also give random unwanted characters (eg., include='abc' will include the lowercase 'a','b','c')
passwd = pass_gen(arg)
print(passwd)
Only characters in passwords
# to generate password only using alphabets
# you can also give 'numbers', 'uppercase', 'lowercase', 'symbols'
# to generate password only using then respectively
# length value must be given
arg = password(only='alphabets', length=16)
# also give random unwanted characters (eg., only='abc' will create password only using the lowercase 'a','b','c')
passwd = pass_gen(arg)
print(passwd)
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
License
MIT
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
genpasswd-0.1.0.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for genpasswd-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf9ea5f3b70a26b595832e1d04b4019ebcb3284428d093f8373c4060ccf4d5e5 |
|
MD5 | 467067cb9c76a8f9970e76315e1b6402 |
|
BLAKE2b-256 | ec303cc8acd529380aa74a84ada81e8cb3d38763145865e618bf8f596f19e81e |