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.3.tar.gz
(2.9 kB
view details)
Built Distribution
p_gen-0.0.3-py3-none-any.whl
(3.4 kB
view details)
File details
Details for the file p-gen-0.0.3.tar.gz
.
File metadata
- Download URL: p-gen-0.0.3.tar.gz
- Upload date:
- Size: 2.9 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | eccbd8b1c827a91b62cb6f0b352aa47ded22948a0542574a8fd631f70a0c2016 |
|
MD5 | 3fe8e888a4cbab010f8411bd64be4b3f |
|
BLAKE2b-256 | dd7f4d2626b71eb1928289a5ddb04c929c2279856c80bbbf2e6a27cda274b6ba |
File details
Details for the file p_gen-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: p_gen-0.0.3-py3-none-any.whl
- Upload date:
- Size: 3.4 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | fac22fd758bd72328fea4986247a14e00e07754ce10045d4695c38349abfed6e |
|
MD5 | d4feb988f1758e6a54561e55a559800a |
|
BLAKE2b-256 | 339fc2c62a44aed0f6ed943cfcb73a7817079db61ea67b8dd814e1fda428f8c1 |