A Python library implementing hid.im: Hid.im turns a file into a regular PNG image.
Hid.im provides a way to store a file as a distinctive png image. Worst case the png is slightly larger than the original file, but often the png can be smaller than the original file as the file is compressed while storing it in the png.
hid.im has a FireFox plugin for extracting files from an hid.im png directly off a webpage.
The python source for hidim.py:
The python source for png.py as a png:
An OSX Hello World c executable:
An OSX upx compressed Hello World c executable:
The c source code for Hello World: