A console utility that allows you to generate passwords based on code phrases and a secret key (seed).
Project description
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 hashes)
Built Distribution
p_gen-0.0.5-py3-none-any.whl
(3.6 kB
view hashes)