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.
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.
Install phrasegen by downloading the appropriate binary for your system from
the latest published release.
phrasegen -he.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-stripGenerating 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 3Outputs to STDOUT:
This
This-is
This-is-a
is
...
of-passphrases-against
passphrases
passphrases-against
against
Please submit an issue against this repo.
See DEVELOPMENT.md.