Ned Batchelder : Blog | Code | Text | Site Hex words » Home : Text |
Created 2 March 2003, last updated 20 March 2007 TheoryHex letters can be used to write english words, like cafebabe, or deadbeef. This is handy for developers, because we can put "recognizable text" in binary data. Unfortunately, there aren't that many words spelled with just the letters a through f. Using creative (or l337) spelling, we can expand the list. PracticeUsing an existing list of common words, and a small python program, I created an 1196-word list of hex words. I used two different words lists, including the common word list from the Moby lexicon, but there are others to choose from, if you want. This is the Python script:
The table of substitutions can be adjusted to broaden the list even further. The code above shows some substitutions commented out, because I didn't think they generally worked well. My favoritesWords I liked from this list that I haven't seen before (the 8-letter ones are especially appealing as DWORDs):
The wordsSome things to notice:
And now, all 1196 words. (And don't miss the 136 hex color words)
| ||||||||||