Skip to main content

Simple password generator

Project description

pw-generator

Generate relatively secure passwords within python scripts.

The idea of the password generator, that produses relatively secure passwords, consisting from some english words and delimiters, and the wordlist itself were taken from passwdqc library.

Code example

from pwgen import passphrase_gen, password_gen
from pwgen.exception import WeakPasswordException

password = passphrase_gen(5)
print(password)

password = password_gen(10)
print(password)

password = passphrase_gen(2)
""" Should get a WeakPasswordException """

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

Homepage of passwdqc library: http://openwall.com/passwdqc/

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

pw-generator-0.1.0.tar.gz (14.4 kB view hashes)

Uploaded Source

Built Distribution

pw_generator-0.1.0-py3-none-any.whl (15.8 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