Skip to main content

password-generator-py

Pypi Build Status codecov MIT licensed

Description

A lot of people with security in mind will use random characters as passwords like t.J:YuZcTSB=4z*v. We feel it’s secure because it’s complicated. But the password above is as difficult as abcdefghijkl!123 for a machine to brute force even though it’s a lot easier for a user to remember.

This program attempts to create passwords truly difficult for a computer to brute force and easier to remember for a user.

Each password contains:

  • 3 words from the english dictionary

  • 1 random number placed at a random position

  • Random separators between words and numbers

It is very secure because…

  • Since words length differ, the password length is unpredictable

  • The separators change randomly

  • The position of the number change randomly

  • There are 32,000 (words) ^3 (number of words) ^10 (separator) ^10 (separator) ^10 (separator) ^1000 (numbers) different combinations possible

Examples

Here are a few passwords that can be generated:

Coaches_Acquires=Dumbbell_908
28=Haziness_Spatulas+Mortals
Knights;Decrypts%Oatcakes_320
Optimise=472+Deterred%Apricots
375+Hazy%Decorate%Ruler
Blotched%Dugout_995;Alkyl

Installation & usage

$> pip3 install passwordgenerator

$> passwordgenerator
844=Chinless=Jewelry+Consumer

Use within another Python script

>>> from passwordgenerator import pwgenerator

>>> pwgenerator.generate()
'676=Layers*Bugbear_Escapes'

Advanced options

passwordgenerator [-h] [-n MIN_WORD_LENGTH] [-x MAX_WORD_LENGTH]
                  [-i MAX_INT_VALUE] [-e NUMBER_OF_ELEMENTS] [-s]

optional arguments:
  -h, --help            show this help message and exit
  -n MIN_WORD_LENGTH, --min_word_length MIN_WORD_LENGTH
                        Minimum length for each word
  -x MAX_WORD_LENGTH, --max_word_length MAX_WORD_LENGTH
                        Maximum length for each word
  -i MAX_INT_VALUE, --max_int_value MAX_INT_VALUE
                        Maximum value for the integer
  -e NUMBER_OF_ELEMENTS, --number_of_elements NUMBER_OF_ELEMENTS
                        Number of elements in the password (ie. 4 = 3 words +
                        1 integer)
  -s, --no_special_characters
                        Do not use special characters

Metadata

Release files for passwordgenerator 1.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for passwordgenerator 1.5.1
File Size Uploaded
passwordgenerator-1.5.1.tar.gz 93.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for passwordgenerator 1.5.1
File Interpreter ABI Platform
passwordgenerator-1.5.1-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 186.1 kB

Release files / passwordgenerator-1.5.1.tar.gz

Download URL passwordgenerator-1.5.1.tar.gz
Size 93.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4cb80150c812ce1d76d36187d95765f7976dcc47628a7c8e03677f52b4341a5a
BLAKE2b-256 checksum
How to use checksums
60f0c6571fed3790dbb4fef5fc1ed7bbec1642961b7553487199703eabea653c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.3

Release files / passwordgenerator-1.5.1-py2.py3-none-any.whl

Download URL passwordgenerator-1.5.1-py2.py3-none-any.whl
Size 92.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
d6d0265e4a5cb139edd27a47f9e78464f33b066f4f283bb622fe2b32e2e3999c
BLAKE2b-256 checksum
How to use checksums
3a59b5962f72a2931559dfdddbd577969a3afd6b2980d562757f8e5e759558dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.3

Release history Release notifications | RSS feed

This release

1.5.1 This release

2 release files

1.4

2 release files

1.3

1 release file

1.2

2 release files

1.1.1

2 release files

1.1

2 release files

1.0.4

2 release files

1.0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page