genpasswd is a package to generate random passwords.
Reason this release was yanked:
Latest versions are bug free
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 'True'
arg = password(repeat=False)
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-1.0.1.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for genpasswd-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a7b1f5ce0d1c9b3c4b65b1dd8f893da83dc88c64e156c7243cf0df48b7400ae |
|
MD5 | 5a273d16356265b91ddae06b59c39f78 |
|
BLAKE2b-256 | c7fdbf73a5318e5c0f313e65995f6b1b48574f8908df5e085cb4522cf73d5d17 |