libenigma
Enigma machine utility library
Loading...
Searching...
No Matches
genngrams

genngrams

An N-Gram Generator

Usage

genngrams n file

This script generates n-grams from a given file. The first option is the n-gram size, and the second is the file to read from.

Output

Output is formatted like so:

n charcount
count ngram
count ngram
...

Where:

  • n is the number of characters in each N-Gram,
  • charcount is the total number of characters in the input text,
  • count is the number of occurances of the given N-Gram,
  • and ngram is the N-Gram value.

The output can be directly used by libenigma and enigmacrack.