Hawkynt

BinHex 4.0 (Macintosh)

Binary-to-text encoding system used on classic Mac OS for sending binary files over email. Includes run-length encoding and CRC protection for Macintosh file forks. Educational implementation based on Yves Lempereurโ€™s original BinHex 4.0 specification.

Properties

Property Value
Category Encoding Schemes
Sub-category File Encoding
Security status ๐ŸŽ“ Educational Only
Complexity Intermediate
Inventor Yves Lempereur
Year 1985
Origin ๐Ÿ‡ซ๐Ÿ‡ท France
Source algorithms/encoding/binhex.js

Security

Status: ๐ŸŽ“ Educational Only

No vulnerabilities are recorded for this implementation.

Documentation

References

Test vectors

2 vectors ship with this algorithm and run in the test suite. Byte values are hexadecimal.

Vector 1 โ€” BinHex empty file test

Source: BinHex 4.0 specification

Field Value
input (empty)
expected 28546869732066696c65206d75737420 626520636f6e76657274656420776974 682042696e48657820342e30290a3a0a 3a

Vector 2 โ€” Basic BinHex encoding test

Source: Educational example

Field Value
input 48656c6c6f
expected 28546869732066696c65206d75737420 626520636f6e76657274656420776974 682042696e48657820342e30290a3a35 27395845276d210a3a

โ† All algorithms