Skip to main content

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}

Metadata

Release files for p-gen 0.0.5

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

Source distribution (sdist)

Source distribution for p-gen 0.0.5
File Size Uploaded Provenance
p-gen-0.0.5.tar.gz 3.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for p-gen 0.0.5
File Interpreter ABI Platform
p_gen-0.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 6.7 kB

Release files / p-gen-0.0.5.tar.gz

Download URL p-gen-0.0.5.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
5afb426792683d69d67284a06798b78be3034932e8108bf0d3e481492c62b370
BLAKE2b-256 checksum
How to use checksums
090199ec0c1cb6ff2a219b2beab99b4be99a2c4c5e652af50d0031afe5cd9486
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / p_gen-0.0.5-py3-none-any.whl

Download URL p_gen-0.0.5-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
06efc0f9b8ac69d8794399fa540516fcbd3c906a79e36c8cdb66f5cd7ed9dfeb
BLAKE2b-256 checksum
How to use checksums
dcb88d116f8b30c11903ce8f4c71e20994c4a128e9ed521c00be77376329e12f
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for p-gen 0.0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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