HuffmanZip (Hz) is a simple macOS application built with Swift 6.1 that demonstrates how to compress and decompress files using the Huffman Coding algorithm.
This project is provided for educational purposes only. It is not optimized for performance or real-world use. Use at your own risk.
- 📦 Compress any file using the Huffman algorithm
- 📂 Decompress previously compressed
.hzfiles
Huffman coding is a classic lossless data compression algorithm. While no longer optimal compared to modern codecs, it’s widely used as an educational introduction to entropy encoding.
- macOS 15.4.1 or later
- Xcode 16.3 or later
- Swift 6.1
Clone the repository and open the Xcode project:
git clone https://github.com/htaschne/hz.git
cd hz
open hz.xcodeprojAlthough it's way slower than state of the art compressors it compresses the bible in under a second and takes 2s to decompress it
