Introduction
BinHex 4.0, released by Yves Lempereur in 1985, encodes a Macintosh file as text, so
that it can be sent through internet mail or kept on a system that is not a Macintosh.
The MIME type is application/mac-binhex40. RFC 1741 recommends
AppleDouble for most cases.
Structure
The file has an identification line saying that it must be converted with BinHex 4.0,
then the encoded data between two colons, in lines of at most 64 characters. Decoded, it
holds a header with the file name, version, type, creator, flags and fork lengths, then
the data fork and the resource fork, each part followed by a 16-bit CRC. Runs of a
repeated byte are shortened with the marker byte 0x90.
Not described
This page is a first outline. The encoding is not yet described in full here.
Known, not yet covered
- Reference: the character table, the header layout and the CRC.
- Viewer: the site has no viewer for this format.