Saturday, August 1, 2015

Pass Phrase from Dictionary

I've recently been studying password entropy and algorithms.  I spent a bit of time looking at RFC 2289 and thought that using the dictionary it provides would be an interesting implementation, as well as using other freely available dictionaries.

Of all the things about this code, keep in mind that cryptographically secure random numbers should always be used when generating random numbers.  This implementation provides one possible mechanism of obtaining a CSPRNG.

Example output:
$ ./passwdGen -rfc
balk feud herb whet argo woo
You can find dictionaries at the links below, though they may require editing for use with the application.  The input file should contain a simple list of words, one word per line.


/*
 *  main.cpp
 *  passwdGen
 *
 *      Copyright (c) 2015, David C. Means
 *      All rights reserved.
 *      
 *      Redistribution and use in source and binary forms, with or without
 *      modification, are permitted provided that the following conditions are met:
 *          * Redistributions of source code must retain the above copyright
 *            notice, this list of conditions and the following disclaimer.
 *          * Redistributions in binary form must reproduce the above copyright
 *            notice, this list of conditions and the following disclaimer in the
 *            documentation and/or other materials provided with the distribution.
 *          * Neither the name of the <organization> nor the
 *            names of its contributors may be used to endorse or promote products
 *            derived from this software without specific prior written permission.
 *      
 *      THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
 *      ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 *      WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 *      DISCLAIMED. IN NO EVENT SHALL DAVID MEANS BE LIABLE FOR ANY
 *      DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 *      (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
 *      LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 *      ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 *      (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 *      SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

#include <iostream>
#include <fstream>
#include <string>
#include <map>
#include "csprng.h"
#include "rfc2289.h"

using namespace std;

static string version("0.1");
static string progName("");

enum FLAGS
{
    UPPERCASE   = 0x0001,
    APPENDNUM   = 0x0002,
    SYMBOL      = 0x0004,
    RFC         = 0x0008,
};

/**
 *  Command line configurations
 */
class Config
{
public:
    Config() : version(0),numWords(0),iterations(1),fileName("") {};

    /** ToDo: create getters and setters */
    bool    version;
    int     numWords;
    int     iterations;
    int     flags;
    string  fileName;
};

char getSymbol()
{
    char c = 0;
    while ( 1
    {
        CSPRNG(sizeof(char), (void*)&c);
        switch ( c % 128 )
        {
            case '@': case '`': case '!': case '#':
            case '$': case '%': case '&': case '(':
            case ')': case '*': case ':': case '+':
            case ';': case '[': case '{': case ',':
            case '|': case '-': case '=': case ']':
            case '}': case '.': case '>': case '^':
            case '~': case '?': case '_':
                return c;
    
            default:
                break;
        }    
    }
}


/**
 *  Load the word dictionary
 */
void loadDictionary(string fileName, map<int, string>& dict)
{
    string s;
    int i = 0;

    ifstream file;

    if ( fileName.empty())
    {
        for(; rfc2289[i] != NULL; i++ )
            dict.insert(std::pair<int, string>(i, rfc2289[i]));
        
        return;
    }

    try 
    {
        file.exceptions(fstream::failbit);
        file.open(fileName, fstream::in);
    }
    catch (std::fstream::failure & err )
    {
        cerr << endl << "Failed to open file: " << fileName.c_str() << endl << endl;
        return;
    } 

    for (; !file.eof(); i++)
    {
        s.erase();
        file >> s;
        dict.insert( std::pair<int, string>(i, s));
    }
    file.close();
    return;
}


/**
 *  Report our version identity
 */
void doVersion(char* argv[])
{
    cerr << progName << " v" << version  << endl;
}

/**
 *  Grab a pointer to the program name sans the path
 */
void parseProgName(char* argv[])
{
    size_t i;
    char* ptr = argv[0];
    
    for(i = strlen(argv[0]); i > 0; i-- )
        if ( *(ptr+i) == '/' )
            break;
    
    progName.assign(ptr+i+1);
}


/**
 *  Determine if a swtich exists in the command line arguments
 */
bool parseSwitch(int argc, char* argv[], const char* param, const int paramLen)
{
    int i = 0;
    for(; i < argc; i++ )
    {
        if ( memcmp(argv[i], param, paramLen ) == 0 )
            return 1;
    }
    return 0;
}


/**
 *  Parse the parameter associated with the command line switch 
 */
const char* parseParameter(int argc, char** argv, const char* param, const int paramLen)
{
    static string str;
    int i = 0;
    
    if ( !parseSwitch( argc, argv, param, paramLen ) )
        goto end;
    
    for(i = 1; i < argc; i++ )
    {
        if ( memcmp(argv[i], param, paramLen ) == 0 )
        {
            if ( ++i < argc )
                return argv[i];
            break;
        }
    }
end:
    return (char*) "\0";
}


/**
 *  Parse command line arguments and set configuration
 *  values
 */
bool parseCmdLineArgs(int argc, char* argv[], Config& cfg)
{
    string temp("");

    parseProgName(argv);
    
    if ( parseSwitch(argc, argv, "-v", 2) )
    {
        cfg.version = true;
        return false;
    }
    
    if ( parseSwitch(argc, argv, "-h", 2))
        return false;

    /**
     *  Get the word list
     */
    if ( parseSwitch(argc, argv, "-rfc", 4))
    {
        cfg.flags |= RFC;
        cfg.numWords = 6;
    }
    else
    {
        cfg.fileName = parseParameter(argc, argv, "-f", 2);
        if ( cfg.fileName.empty() )
        {
            cerr << "Error: " << " -f parameter not found" << endl;
            return false;
        }
    }

    if ( parseSwitch(argc, argv, "-u", 2))
        cfg.flags |= UPPERCASE;

    if ( parseSwitch(argc, argv, "-n", 2))
        cfg.flags |= APPENDNUM;

    if ( parseSwitch(argc, argv, "-s", 2))
        cfg.flags |= SYMBOL;
    
    /**
     *  Get the number of words 
     */
    if ( (cfg.flags & RFC ) == 0 )
    {
        temp = parseParameter(argc, argv, "-c", 2);
        if ( temp.empty() )
        {
            cerr << "Error: " << " -c parameter not found" << endl;
            return false;
        }

        if ( temp[0] == '-' )
        {
            cerr << "Error: " << " -c parameter not found" << endl;
            return false;
        }
        cfg.numWords = atoi(temp.c_str());

        if ( cfg.numWords <= 0 )
        {
            cerr << "Error: " << " -c value less than or equal to zero" << endl;
            return false;
        }
    }

    /**
     *  Get the iteration count
     */
    temp.erase();
    temp = parseParameter(argc, argv, "-i", 2);
    if ( temp[0] == '-' )
    {
        cerr << "Error: " << " -i parameter not found" << endl;
        return false;
    }
    if ( !temp.empty())
        cfg.iterations = atoi(temp.c_str());

    if ( cfg.iterations == 0 )
    {
        cerr << "Error: " << " -i value less than or equal to zero" << endl;
        return false;
    }
    
    return true;
}



/**
 *  Perform the actual work
 */
void doWork(const Config& cfg)
{
    string empty("");
    bool upperFlag  = ( cfg.flags & UPPERCASE ) ? true : false;
    bool numberFlag = ( cfg.flags & APPENDNUM ) ? true : false;
    bool symbolFlag = ( cfg.flags & SYMBOL    ) ? true : false;
    bool rfc2289    = ( cfg.flags & RFC       ) ? true : false;
    int iterations  = cfg.iterations;
    
    map<int, string> Words;
    
    if (rfc2289 )
        loadDictionary(empty, Words);
    else
        loadDictionary(cfg.fileName, Words);
    
    do
    {
        unsigned int index = 0;
        string s;
        for (int x = cfg.numWords; x > 0; x-- )
        {
            s.erase();
            CSPRNG(sizeof(unsigned int), (void*)&index);
            string s = Words[index % Words.size()];
            if ( upperFlag )
                s[0] = toupper(s[0]);
            cout << s;
            if ( x > 1 )
                cout << " ";
        }
        
        if ( symbolFlag )
            cout << getSymbol();
        
        if ( numberFlag )
        {
            unsigned int value;
            CSPRNG(sizeof (unsigned int), (void*)&value);
            cout << " " << ( value % 99 ) + 1;
        }
        cout << endl;
    }
    while ( --iterations > 0 );
    
}


/**
 *  --- MAIN --- 
 */
int main(int argc, char* argv[])
{
    string fileName("");

    Config cfg;

    if ( !parseCmdLineArgs(argc, argv, cfg))
    {
        /**
         *  if we don't have our required switches, bail
         */

        if ( cfg.version )
            doVersion(argv);

        cerr << endl 
            << "Usage: " << progName << " [-f dictionary -c wordCount] [ -rfc | -i |-c | -n | -v | -h]" << endl
            << endl
            << "-rfc   Use RFC 2289 dictionary, 6 words" << endl
            << "-f     Path to custom dictionary" << endl
            << "-c     Number of words to generate" << endl
            << "-n     Append number 1-99" << endl
            << "-i     Number of iterations to run (default 1)" << endl
            << "-s     Add random symbol" << endl
            << "-h     This information" << endl
            << "-v     Version" << endl;

        return 1;
    }

    doWork(cfg);

    return 0;
}


/*
 *  csprng.h
 *  passwdGen
 *
 *      Copyright (c) 2015, David C. Means
 *      All rights reserved.
 *
 *      Redistribution and use in source and binary forms, with or without
 *      modification, are permitted provided that the following conditions are met:
 *          * Redistributions of source code must retain the above copyright
 *            notice, this list of conditions and the following disclaimer.
 *          * Redistributions in binary form must reproduce the above copyright
 *            notice, this list of conditions and the following disclaimer in the
 *            documentation and/or other materials provided with the distribution.
 *          * Neither the name of the <organization> nor the
 *            names of its contributors may be used to endorse or promote products
 *            derived from this software without specific prior written permission.
 *
 *      THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
 *      ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 *      WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 *      DISCLAIMED. IN NO EVENT SHALL DAVID MEANS BE LIABLE FOR ANY
 *      DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 *      (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
 *      LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 *      ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 *      (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 *      SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

#ifndef __passwdGen__csprng__
#define __passwdGen__csprng__

bool CSPRNG(const size_t size, void* bytes);

#endif /* defined(__passwdGen__csprng__) */

/*
 *  csprng.cpp
 *  passwdGen
 *
 *      Copyright (c) 2015, David C. Means
 *      All rights reserved.
 *
 *      Redistribution and use in source and binary forms, with or without
 *      modification, are permitted provided that the following conditions are met:
 *          * Redistributions of source code must retain the above copyright
 *            notice, this list of conditions and the following disclaimer.
 *          * Redistributions in binary form must reproduce the above copyright
 *            notice, this list of conditions and the following disclaimer in the
 *            documentation and/or other materials provided with the distribution.
 *          * Neither the name of the <organization> nor the
 *            names of its contributors may be used to endorse or promote products
 *            derived from this software without specific prior written permission.
 *
 *      THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
 *      ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 *      WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 *      DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
 *      DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 *      (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
 *      LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 *      ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 *      (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 *      SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

#include <iostream>
#include <fstream>
#include <string>
#include "csprng.h"

using namespace std;

/**
 *  Generate a random number
 */

bool CSPRNG(const size_t size, void* bytes)
{
    ifstream ifs("/dev/urandom", fstream::in | ifstream::binary);

    if ( !ifs.good() )
        return false;
    
    do
    {
        ifs.read((char *)bytes, size);
    } while ( !ifs.good());
    
    ifs.close();
    return true;
}

/*
 *  rfc2289.h
 *  passwdGen
 */
#ifndef passwdGen_rfc2289_h
#define passwdGen_rfc2289_h

char const *rfc2289[] =
{            "a",     "abe",   "ace",   "act",   "ad",    "ada",   "add",
    "ago",   "aid",   "aim",   "air",   "all",   "alp",   "am",    "amy",
    "an",    "ana",   "and",   "ann",   "ant",   "any",   "ape",   "aps",
    "apt",   "arc",   "are",   "ark",   "arm",   "art",   "as",    "ash",
    "ask",   "at",    "ate",   "aug",   "auk",   "ave",   "awe",   "awk",
    "awl",   "awn",   "ax",    "aye",   "bad",   "bag",   "bah",   "bam",
    "ban",   "bar",   "bat",   "bay",   "be",    "bed",   "bee",   "beg",
    "ben",   "bet",   "bey",   "bib",   "bid",   "big",   "bin",   "bit",
    "bob",   "bog",   "bon",   "boo",   "bop",   "bow",   "boy",   "bub",
    "bud",   "bug",   "bum",   "bun",   "bus",   "but",   "buy",   "by",
    "bye",   "cab",   "cal",   "cam",   "can",   "cap",   "car",   "cat",
    "caw",   "cod",   "cog",   "col",   "con",   "coo",   "cop",   "cot",
    "cow",   "coy",   "cry",   "cub",   "cue",   "cup",   "cur",   "cut",
    "dab",   "dad",   "dam",   "dan",   "dar",   "day",   "dee",   "del",
    "den",   "des",   "dew",   "did",   "die",   "dig",   "din",   "dip",
    "do",    "doe",   "dog",   "don",   "dot",   "dow",   "dry",   "dub",
    "dud",   "due",   "dug",   "dun",   "ear",   "eat",   "ed",    "eel",
    "egg",   "ego",   "eli",   "elk",   "elm",   "ely",   "em",    "end",
    "est",   "etc",   "eva",   "eve",   "ewe",   "eye",   "fad",   "fan",
    "far",   "fat",   "fay",   "fed",   "fee",   "few",   "fib",   "fig",
    "fin",   "fir",   "fit",   "flo",   "fly",   "foe",   "fog",   "for",
    "fry",   "fum",   "fun",   "fur",   "gab",   "gad",   "gag",   "gal",
    "gam",   "gap",   "gas",   "gay",   "gee",   "gel",   "gem",   "get",
    "gig",   "gil",   "gin",   "go",    "got",   "gum",   "gun",   "gus",
    "gut",   "guy",   "gym",   "gyp",   "ha",    "had",   "hal",   "ham",
    "han",   "hap",   "has",   "hat",   "haw",   "hay",   "he",    "hem",
    "hen",   "her",   "hew",   "hey",   "hi",    "hid",   "him",   "hip",
    "his",   "hit",   "ho",    "hob",   "hoc",   "hoe",   "hog",   "hop",
    "hot",   "how",   "hub",   "hue",   "hug",   "huh",   "hum",   "hut",
    "i",     "icy",   "ida",   "if",    "ike",   "ill",   "ink",   "inn",
    "io",    "ion",   "iq",    "ira",   "ire",   "irk",   "is",    "it",
    "its",   "ivy",   "jab",   "jag",   "jam",   "jan",   "jar",   "jaw",
    "jay",   "jet",   "jig",   "jim",   "jo",    "job",   "joe",   "jog",
    "jot",   "joy",   "jug",   "jut",   "kay",   "keg",   "ken",   "key",
    "kid",   "kim",   "kin",   "kit",   "la",    "lab",   "lac",   "lad",
    "lag",   "lam",   "lap",   "law",   "lay",   "lea",   "led",   "lee",
    "leg",   "len",   "leo",   "let",   "lew",   "lid",   "lie",   "lin",
    "lip",   "lit",   "lo",    "lob",   "log",   "lop",   "los",   "lot",
    "lou",   "low",   "loy",   "lug",   "lye",   "ma",    "mac",   "mad",
    "mae",   "man",   "mao",   "map",   "mat",   "maw",   "may",   "me",
    "meg",   "mel",   "men",   "met",   "mew",   "mid",   "min",   "mit",
    "mob",   "mod",   "moe",   "moo",   "mop",   "mos",   "mot",   "mow",
    "mud",   "mug",   "mum",   "my",    "nab",   "nag",   "nan",   "nap",
    "nat",   "nay",   "ne",    "ned",   "nee",   "net",   "new",   "nib",
    "nil",   "nip",   "nit",   "no",    "nob",   "nod",   "non",   "nor",
    "not",   "nov",   "now",   "nu",    "nun",   "nut",   "o",     "oaf",
    "oak",   "oar",   "oat",   "odd",   "ode",   "of",    "off",   "oft",
    "oh",    "oil",   "ok",    "old",   "on",    "one",   "or",    "orb",
    "ore",   "orr",   "os",    "ott",   "our",   "out",   "ova",   "ow",
    "owe",   "owl",   "own",   "ox",    "pa",    "pad",   "pal",   "pam",
    "pan",   "pap",   "par",   "pat",   "paw",   "pay",   "pea",   "peg",
    "pen",   "pep",   "per",   "pet",   "pew",   "phi",   "pi",    "pie",
    "pin",   "pit",   "ply",   "po",    "pod",   "poe",   "pop",   "pot",
    "pow",   "pro",   "pry",   "pub",   "pug",   "pun",   "pup",   "put",
    "quo",   "rag",   "ram",   "ran",   "rap",   "rat",   "raw",   "ray",
    "reb",   "red",   "rep",   "ret",   "rib",   "rid",   "rig",   "rim",
    "rio",   "rip",   "rob",   "rod",   "roe",   "ron",   "rot",   "row",
    "roy",   "rub",   "rue",   "rug",   "rum",   "run",   "rye",   "sac",
    "sad",   "sag",   "sal",   "sam",   "san",   "sap",   "sat",   "saw",
    "say",   "sea",   "sec",   "see",   "sen",   "set",   "sew",   "she",
    "shy",   "sin",   "sip",   "sir",   "sis",   "sit",   "ski",   "sky",
    "sly",   "so",    "sob",   "sod",   "son",   "sop",   "sow",   "soy",
    "spa",   "spy",   "sub",   "sud",   "sue",   "sum",   "sun",   "sup",
    "tab",   "tad",   "tag",   "tan",   "tap",   "tar",   "tea",   "ted",
    "tee",   "ten",   "the",   "thy",   "tic",   "tie",   "tim",   "tin",
    "tip",   "to",    "toe",   "tog",   "tom",   "ton",   "too",   "top",
    "tow",   "toy",   "try",   "tub",   "tug",   "tum",   "tun",   "two",
    "un",    "up",    "us",    "use",   "van",   "vat",   "vet",   "vie",
    "wad",   "wag",   "war",   "was",   "way",   "we",    "web",   "wed",
    "wee",   "wet",   "who",   "why",   "win",   "wit",   "wok",   "won",
    "woo",   "wow",   "wry",   "wu",    "yam",   "yap",   "yaw",   "ye",
    "yea",   "yes",   "yet",   "you",   "abed""abel""abet""able",
    "abut""ache""acid""acme""acre""acta""acts""adam",
    "adds""aden""afar""afro""agee""ahem""ahoy""aida",
    "aide""aids""airy""ajar""akin""alan""alec""alga",
    "alia""ally""alma""aloe""also""alto""alum""alva",
    "amen""ames""amid""ammo""amok""amos""amra""andy",
    "anew""anna""anne""ante""anti""aqua""arab""arch",
    "area""argo""arid""army""arts""arty""asia""asks",
    "atom""aunt""aura""auto""aver""avid""avis""avon",
    "avow""away""awry""babe""baby""bach""back""bade",
    "bail""bait""bake""bald""bale""bali""balk""ball",
    "balm""band""bane""bang""bank""barb""bard""bare",
    "bark""barn""barr""base""bash""bask""bass""bate",
    "bath""bawd""bawl""bead""beak""beam""bean""bear",
    "beat""beau""beck""beef""been""beer""beet""bela",
    "bell""belt""bend""bent""berg""bern""bert""bess",
    "best""beta""beth""bhoy""bias""bide""bien""bile",
    "bilk""bill""bind""bing""bird""bite""bits""blab",
    "blat""bled""blew""blob""bloc""blot""blow""blue",
    "blum""blur""boar""boat""boca""bock""bode""body",
    "bogy""bohr""boil""bold""bolo""bolt""bomb""bona",
    "bond""bone""bong""bonn""bony""book""boom""boon",
    "boot""bore""borg""born""bose""boss""both""bout",
    "bowl""boyd""brad""brae""brag""bran""bray""bred",
    "brew""brig""brim""brow""buck""budd""buff""bulb",
    "bulk""bull""bunk""bunt""buoy""burg""burl""burn",
    "burr""burt""bury""bush""buss""bust""busy""byte",
    "cady""cafe""cage""cain""cake""calf""call""calm",
    "came""cane""cant""card""care""carl""carr""cart",
    "case""cash""cask""cast""cave""ceil""cell""cent",
    "cern""chad""char""chat""chaw""chef""chen""chew",
    "chic""chin""chou""chow""chub""chug""chum""cite",
    "city""clad""clam""clan""claw""clay""clod""clog",
    "clot""club""clue""coal""coat""coca""cock""coco",
    "coda""code""cody""coed""coil""coin""coke""cola",
    "cold""colt""coma""comb""come""cook""cool""coon",
    "coot""cord""core""cork""corn""cost""cove""cowl",
    "crab""crag""cram""cray""crew""crib""crow""crud",
    "cuba""cube""cuff""cull""cult""cuny""curb""curd",
    "cure""curl""curt""cuts""dade""dale""dame""dana",
    "dane""dang""dank""dare""dark""darn""dart""dash",
    "data""date""dave""davy""dawn""days""dead""deaf",
    "deal""dean""dear""debt""deck""deed""deem""deer",
    "deft""defy""dell""dent""deny""desk""dial""dice",
    "died""diet""dime""dine""ding""dint""dire""dirt",
    "disc""dish""disk""dive""dock""does""dole""doll",
    "dolt""dome""done""doom""door""dora""dose""dote",
    "doug""dour""dove""down""drab""drag""dram""draw",
    "drew""drub""drug""drum""dual""duck""duct""duel",
    "duet""duke""dull""dumb""dune""dunk""dusk""dust",
    "duty""each""earl""earn""ease""east""easy""eben",
    "echo""eddy""eden""edge""edgy""edit""edna""egan",
    "elan""elba""ella""else""emil""emit""emma""ends",
    "eric""eros""even""ever""evil""eyed""face""fact",
    "fade""fail""fain""fair""fake""fall""fame""fang",
    "farm""fast""fate""fawn""fear""feat""feed""feel",
    "feet""fell""felt""fend""fern""fest""feud""fief",
    "figs""file""fill""film""find""fine""fink""fire",
    "firm""fish""fisk""fist""fits""five""flag""flak",
    "flam""flat""flaw""flea""fled""flew""flit""floc",
    "flog""flow""flub""flue""foal""foam""fogy""foil",
    "fold""folk""fond""font""food""fool""foot""ford",
    "fore""fork""form""fort""foss""foul""four""fowl",
    "frau""fray""fred""free""fret""frey""frog""from",
    "fuel""full""fume""fund""funk""fury""fuse""fuss",
    "gaff""gage""gail""gain""gait""gala""gale""gall",
    "galt""game""gang""garb""gary""gash""gate""gaul",
    "gaur""gave""gawk""gear""geld""gene""gent""germ",
    "gets""gibe""gift""gild""gill""gilt""gina""gird",
    "girl""gist""give""glad""glee""glen""glib""glob",
    "glom""glow""glue""glum""glut""goad""goal""goat",
    "goer""goes""gold""golf""gone""gong""good""goof",
    "gore""gory""gosh""gout""gown""grab""grad""gray",
    "greg""grew""grey""grid""grim""grin""grit""grow",
    "grub""gulf""gull""gunk""guru""gush""gust""gwen",
    "gwyn""haag""haas""hack""hail""hair""hale""half",
    "hall""halo""halt""hand""hang""hank""hans""hard",
    "hark""harm""hart""hash""hast""hate""hath""haul",
    "have""hawk""hays""head""heal""hear""heat""hebe",
    "heck""heed""heel""heft""held""hell""helm""herb",
    "herd""here""hero""hers""hess""hewn""hick""hide",
    "high""hike""hill""hilt""hind""hint""hire""hiss",
    "hive""hobo""hock""hoff""hold""hole""holm""holt",
    "home""hone""honk""hood""hoof""hook""hoot""horn",
    "hose""host""hour""hove""howe""howl""hoyt""huck",
    "hued""huff""huge""hugh""hugo""hulk""hull""hunk",
    "hunt""hurd""hurl""hurt""hush""hyde""hymn""ibis",
    "icon""idea""idle""iffy""inca""inch""into""ions",
    "iota""iowa""iris""irma""iron""isle""itch""item",
    "ivan""jack""jade""jail""jake""jane""java""jean",
    "jeff""jerk""jess""jest""jibe""jill""jilt""jive",
    "joan""jobs""jock""joel""joey""john""join""joke",
    "jolt""jove""judd""jude""judo""judy""juju""juke",
    "july""june""junk""juno""jury""just""jute""kahn",
    "kale""kane""kant""karl""kate""keel""keen""keno",
    "kent""kern""kerr""keys""kick""kill""kind""king",
    "kirk""kiss""kite""klan""knee""knew""knit""knob",
    "knot""know""koch""kong""kudo""kurd""kurt""kyle",
    "lace""lack""lacy""lady""laid""lain""lair""lake",
    "lamb""lame""land""lane""lang""lard""lark""lass",
    "last""late""laud""lava""lawn""laws""lays""lead",
    "leaf""leak""lean""lear""leek""leer""left""lend",
    "lens""lent""leon""lesk""less""lest""lets""liar",
    "lice""lick""lied""lien""lies""lieu""life""lift",
    "like""lila""lilt""lily""lima""limb""lime""lind",
    "line""link""lint""lion""lisa""list""live""load",
    "loaf""loam""loan""lock""loft""loge""lois""lola",
    "lone""long""look""loon""loot""lord""lore""lose",
    "loss""lost""loud""love""lowe""luck""lucy""luge",
    "luke""lulu""lund""lung""lura""lure""lurk""lush",
    "lust""lyle""lynn""lyon""lyra""mace""made""magi",
    "maid""mail""main""make""male""mali""mall""malt",
    "mana""mann""many""marc""mare""mark""mars""mart",
    "mary""mash""mask""mass""mast""mate""math""maul",
    "mayo""mead""meal""mean""meat""meek""meet""meld",
    "melt""memo""mend""menu""mert""mesh""mess""mice",
    "mike""mild""mile""milk""mill""milt""mimi""mind",
    "mine""mini""mink""mint""mire""miss""mist""mite",
    "mitt""moan""moat""mock""mode""mold""mole""moll",
    "molt""mona""monk""mont""mood""moon""moor""moot",
    "more""morn""mort""moss""most""moth""move""much",
    "muck""mudd""muff""mule""mull""murk""mush""must",
    "mute""mutt""myra""myth""nagy""nail""nair""name",
    "nary""nash""nave""navy""neal""near""neat""neck",
    "need""neil""nell""neon""nero""ness""nest""news",
    "newt""nibs""nice""nick""nile""nina""nine""noah",
    "node""noel""noll""none""nook""noon""norm""nose",
    "note""noun""nova""nude""null""numb""oath""obey",
    "oboe""odin""ohio""oily""oint""okay""olaf""oldy",
    "olga""olin""oman""omen""omit""once""ones""only",
    "onto""onus""oral""orgy""oslo""otis""otto""ouch",
    "oust""outs""oval""oven""over""owly""owns""quad",
    "quit""quod""race""rack""racy""raft""rage""raid",
    "rail""rain""rake""rank""rant""rare""rash""rate",
    "rave""rays""read""real""ream""rear""reck""reed",
    "reef""reek""reel""reid""rein""rena""rend""rent",
    "rest""rice""rich""rick""ride""rift""rill""rime",
    "ring""rink""rise""risk""rite""road""roam""roar",
    "robe""rock""rode""roil""roll""rome""rood""roof",
    "rook""room""root""rosa""rose""ross""rosy""roth",
    "rout""rove""rowe""rows""rube""ruby""rude""rudy",
    "ruin""rule""rung""runs""runt""ruse""rush""rusk",
    "russ""rust""ruth""sack""safe""sage""said""sail",
    "sale""salk""salt""same""sand""sane""sang""sank",
    "sara""saul""save""says""scan""scar""scat""scot",
    "seal""seam""sear""seat""seed""seek""seem""seen",
    "sees""self""sell""send""sent""sets""sewn""shag",
    "sham""shaw""shay""shed""shim""shin""shod""shoe",
    "shot""show""shun""shut""sick""side""sift""sigh",
    "sign""silk""sill""silo""silt""sine""sing""sink",
    "sire""site""sits""situ""skat""skew""skid""skim",
    "skin""skit""slab""slam""slat""slay""sled""slew",
    "slid""slim""slit""slob""slog""slot""slow""slug",
    "slum""slur""smog""smug""snag""snob""snow""snub",
    "snug""soak""soar""sock""soda""sofa""soft""soil",
    "sold""some""song""soon""soot""sore""sort""soul",
    "sour""sown""stab""stag""stan""star""stay""stem",
    "stew""stir""stow""stub""stun""such""suds""suit",
    "sulk""sums""sung""sunk""sure""surf""swab""swag",
    "swam""swan""swat""sway""swim""swum""tack""tact",
    "tail""take""tale""talk""tall""tank""task""tate",
    "taut""teal""team""tear""tech""teem""teen""teet",
    "tell""tend""tent""term""tern""tess""test""than",
    "that""thee""them""then""they""thin""this""thud",
    "thug""tick""tide""tidy""tied""tier""tile""till",
    "tilt""time""tina""tine""tint""tiny""tire""toad",
    "togo""toil""told""toll""tone""tong""tony""took",
    "tool""toot""tore""torn""tote""tour""tout""town",
    "trag""tram""tray""tree""trek""trig""trim""trio",
    "trod""trot""troy""true""tuba""tube""tuck""tuft",
    "tuna""tune""tung""turf""turn""tusk""twig""twin",
    "twit""ulan""unit""urge""used""user""uses""utah",
    "vail""vain""vale""vary""vase""vast""veal""veda",
    "veil""vein""vend""vent""verb""very""veto""vice",
    "view""vine""vise""void""volt""vote""wack""wade",
    "wage""wail""wait""wake""wale""walk""wall""walt",
    "wand""wane""wang""want""ward""warm""warn""wart",
    "wash""wast""wats""watt""wave""wavy""ways""weak",
    "weal""wean""wear""weed""week""weir""weld""well",
    "welt""went""were""wert""west""wham""what""whee",
    "when""whet""whoa""whom""wick""wife""wild""will",
    "wind""wine""wing""wink""wino""wire""wise""wish",
    "with""wolf""wont""wood""wool""word""wore""work",
    "worm""worn""wove""writ""wynn""yale""yang""yank",
    "yard""yarn""yawl""yawn""yeah""year""yell""yoga",
    "yoke"NULL };


#endif

No comments:

Post a Comment