GithubHelp home page GithubHelp logo

maximzayats / password-generator Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 8 KB

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

Python 100.00%
password-generator password cli console console-application python

password-generator's Introduction

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}

password-generator's People

Contributors

maksimzayats avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.