|Ned Batchelder : Blog | Code | Text | Site|
» Home : Text
Created 2 March 2003, last updated 20 March 2007
Hex 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.
Using an existing list of common words, and a small Python program, I created an 1196-word list of hex words.
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.
Words I liked from this list that I haven't seen before (the 8-letter ones are especially appealing as DWORDs):
Some things to notice:
And now, all 1196 words. (And don't miss the 136 hex color words)