Skip to main content

A console utility that allows you to generate passwords based on code phrases and a secret key (seed).

Project description

PyPI version Code style: black Imports: isort Checked with mypy

About

Password Generator is a console utility that allows you to generate passwords based on code phrases and a secret key (seed).


Requirements:

  • Python 3+

Installation

Install password-generator via pip:

$ pip install p-gen

Set default values to generator:

  • Seed (Default: MySecretSeed):
export PGEN_SEED=MyNotDefaultSecretSeed  # Linux / OSX
setx PGEN_SEED MyNotDefaultSecretSeed    # Windows
  • Password Length (Default: 18):
export PGEN_LENGTH=18  # Linux / OSX
setx PGEN_LENGTH 18    # Windows
  • Usage of Special Symbols (0 or 1) (Default: 1):
export PGEN_USE_SPECIAL_SYMBOLS=1  # Linux / OSX
setx PGEN_USE_SPECIAL_SYMBOLS 1    # Windows

That's it!


Usage

Available keywords: pgen p-gen pass-gen

Examples

pgen -h

>>>
usage: pgen [-h] [-length LENGTH] [-seed SEED] [-special_symbols {0,1}] CodePhrases [CodePhrases ...]

Generate the passwords.

positional arguments:
  CodePhrases

optional arguments:
  -h, --help            show this help message and exit
  -length LENGTH, -len LENGTH, -l LENGTH
                        length of password
  -seed SEED, -s SEED   secret key to generate unique passwords
  -special_symbols {0,1}, -ss {0,1}
                        use special symbols like "!#$./:;" etc.
pgen phrase1 phrase2

>>> Your password: {Oj>[n8kQZX}lvYF2Y
pgen phrase1 phrase2 -ss 0

>>> Your password: Jp9YEGbR4aqutZKafu
pgen phrase1 phrase2 -l 12

>>> Your password: {Oj>[n8kQZX}

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

p-gen-0.0.5.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

p_gen-0.0.5-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file p-gen-0.0.5.tar.gz.

File metadata

  • Download URL: p-gen-0.0.5.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.5

File hashes

Hashes for p-gen-0.0.5.tar.gz
Algorithm Hash digest
SHA256 5afb426792683d69d67284a06798b78be3034932e8108bf0d3e481492c62b370
MD5 eddeffd7be1568adc55571a10851d95f
BLAKE2b-256 090199ec0c1cb6ff2a219b2beab99b4be99a2c4c5e652af50d0031afe5cd9486

See more details on using hashes here.

File details

Details for the file p_gen-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: p_gen-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.5

File hashes

Hashes for p_gen-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 06efc0f9b8ac69d8794399fa540516fcbd3c906a79e36c8cdb66f5cd7ed9dfeb
MD5 deebdc4b5d65ae2979c8943c811da36f
BLAKE2b-256 dcb88d116f8b30c11903ce8f4c71e20994c4a128e9ed521c00be77376329e12f

See more details on using hashes here.

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