lachesis / pos-passphrases

Randomly generated passphrases matching parts of speech

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This repo builds a Docker container that installs python3 and nltk, then downloads the wordnet database
The main script generates passwords matching code phrases composed of 1 letter for each part of speech

e.g. ANVAN -> Adjective Noun Verb Adjective Noun

The script generates 10 passwords matching the code phrase

e.g.


```bash
docker build -t wordnet-nltk . && docker run --rm wordnet-nltk python pw.py

BenthalDiscusDepleteUnshodSi
TrophicLinnetAppendUnalikeLowan
FungalVocableDampenFemoralCoterie
ErgoticJiquiStickleStingyPosting
UnpavedBanshieBetokenAreolarMoll
RatlikeMitreRelaceTertianLung
DimmedLahSubventShrubbyHickey
CiliaryAnapsidEmbroilMucousNan
BenzoicRoteUpriseScrotalPlower
AmminoRaphiaDeclawTubalDarter
```



The container can be induced to dump its wordlist for future use without needing nltk or wordnet like this:

```bash
docker build -t wordnet-nltk . && docker run --rm wordnet-nltk python dump.py > wordlists.json
```

A dump is included in the repo and kept up to date by that command.

This means that you can get a demo by just running:

```bash
python3 pw.py
```

About

Randomly generated passphrases matching parts of speech


Languages

Language:Python 83.2%Language:Dockerfile 16.8%