Skip to main content

Random password generator

Project description

Random password generator.

Simple example:

$ randpw
Ex8PfCcIvFeT5GMT

Install

Install using pip:

pip install randpw

or

Download and set executable permission on the script file:

chmod +x randpw.py

or

Download and run using the python interpreter:

python randpw.py

Usage

Usage: randpw [options]

random password generator

Options:
--version    show program's version number and exit
-h, --help   show this help message and exit
-s SIZE      size of the password (default: 16)
-n COUNT     number of passwords to generate (default: 1)
-c CHARS     characters to use: 'letters', 'numbers', 'mixed' or 'full' -
             uses only letters, only numbers, letters + numbers or letters +
             numbers + punctuation (default: mixed)
-l, --lower  lowercase letters (default: disabled)
-u, --upper  uppercase letters (default: disabled)

Examples

Random password using only letters:

$ randpw -c letters

32 characters password:

$ randpw -s 32

Generate 3 uppercase letters passwords:

$ randpw -n 3 -u

Lowercase password cointaing letters, numbers and punctuation:

$ randpw -c full -l

Notes

  • Works on Python 2

  • Tested on Linux and Windows, but should work on all platforms

  • Uses only Python standard library for maximum compatibility

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

randpw-0.1.tar.gz (2.7 kB view hashes)

Uploaded Source

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