Skip to content

Generating sliding window ngrams of specified customizations over a given body of text. Great for generating passphrase candidates with a focus on human memorization from a given source material.

Notifications You must be signed in to change notification settings

ThatOnePasswordWas40Passwords/phrasegen

Repository files navigation

phrasegen

Contributions welcome License

Generating sliding window ngrams of specified customizations over a given body of text. Great for generating passphrase candidates with a focus on human memorization from a given source material.


WhyGetting startedUsageFAQs, feedback, etc

Why

Q: Many other tools for building wordlists from input material already exist, why bother with this?

A: Sometimes less is more. When you only want generated passphrases that maintain original apperance ordering, this is the tool you want. A massive keyspace generated by one of those other tools will contain these values, of course, but they also will have many, many, many other non-interested in outputs.

Installation

Install phrasegen by downloading the appropriate binary for your system from the latest published release.

Usage

phrasegen -h

e.g Generating passphrases from a movie script stored in /tmp/script.txt, of exactly 4 phrases each, joined by a - character, without having scrubbed any of the punctuation from the source material, and storing in an output file to phrases.txt:

phrasegen -join-str "-" \
    -i /tmp/script.txt \
    -o phrases.txt \
    -size 4 \
    -only \
    -no-strip

Generating from a given string via CLI directly (if -i is not an existing file) and/or outputting to STDOUT is also possible (if -o is omitted):

phrasegen -join-str "-" \
    -i "This is a sentence I'd like to use to generate a set of passphrases against." \
    -size 3

Outputs to STDOUT:

This
This-is
This-is-a
is
...
of-passphrases-against
passphrases
passphrases-against
against

FAQs

Please submit an issue against this repo.

Developement

See DEVELOPMENT.md.

About

Generating sliding window ngrams of specified customizations over a given body of text. Great for generating passphrase candidates with a focus on human memorization from a given source material.

Resources

Stars

Watchers

Forks