Skip to main content

To generate random and strong passwords.

Reason this release was yanked:

Latest versions are bug free

Project description

PyPI PyPI - License

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


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.1.2.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

genpasswd-1.1.2-py3-none-any.whl (4.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page