{"id":50127418,"url":"https://github.com/zefir1990/enpakk","last_synced_at":"2026-05-23T20:34:48.212Z","repository":{"id":285050007,"uuid":"956919855","full_name":"zefir1990/enpakk","owner":"zefir1990","description":"Enpakk (Enthropy Pack Kompressor)","archived":false,"fork":false,"pushed_at":"2025-03-30T05:47:50.000Z","size":199,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-21T21:20:27.710Z","etag":null,"topics":["compression","esoteric"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zefir1990.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-03-29T05:53:04.000Z","updated_at":"2025-03-30T05:47:53.000Z","dependencies_parsed_at":"2025-03-29T06:39:48.170Z","dependency_job_id":null,"html_url":"https://github.com/zefir1990/enpakk","commit_stats":null,"previous_names":["demensdeum/enpakk","zefir1990/enpakk"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zefir1990/enpakk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zefir1990%2Fenpakk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zefir1990%2Fenpakk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zefir1990%2Fenpakk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zefir1990%2Fenpakk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zefir1990","download_url":"https://codeload.github.com/zefir1990/enpakk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zefir1990%2Fenpakk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33412082,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-23T18:09:33.147Z","status":"ssl_error","status_checked_at":"2026-05-23T18:09:31.380Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["compression","esoteric"],"created_at":"2026-05-23T20:34:47.540Z","updated_at":"2026-05-23T20:34:48.207Z","avatar_url":"https://github.com/zefir1990.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Enpakk — Enthropy Pack Kompressor\n\n**Enpakk** is an experimental entropy-based compressor that transforms each 2-byte block of input into a single byte using CRC-8. To ensure data integrity, a CRC32 checksum of the original uncompressed data is prepended to the compressed file.\n\nDecompression is performed using brute-force random guessing until the reconstructed data's CRC32 matches the original.\n\n⚠️ **Warning**: This is not a real compression algorithm. It’s slow, probabilistic, and meant for research, fun, or CTF-style challenges. Not suitable for production use.\n\n---\n\n## 📦 Features\n\n- Compresses 2-byte blocks into 1-byte CRC-8 hashes\n- Adds a CRC32 checksum of the original input (stored at file start)\n- Randomized decompression via brute-force search\n- Implemented in **Python**, **C++**, and **C**\n- C/C++ builds provided via a single `Makefile`\n\n---\n\n## 🔧 Installation\n\n```bash\ngit clone https://github.com/yourname/enpakk\ncd enpakk\n```\n\n---\n\n## 🚀 Usage\n\n### Compression\n\n```bash\npython enpakk.py compress input.bin output.enpakk\n```\n\n- Compresses `input.bin` using CRC-8 block hashing\n- Prepends a CRC32 checksum of the original data\n\n### Decompression\n\n```bash\npython decompress.py input.enpakk output.bin\n```\n\n- Randomly brute-forces 2-byte blocks until the CRC32 of the output matches the one stored in the archive\n- Might take seconds or years 😄 — depends on luck and file size\n\n---\n\n## 📚 How it Works\n\n- **Block Size**: 2 bytes (16 bits)\n- **Hash Function**: CRC-8 (poly `0x07`)\n- **Output per block**: 1 byte\n- **Checksum**: CRC32 of the full uncompressed input (stored at the start)\n\nDecompression:\n1. Reads the CRC32 from the beginning\n2. Guesses each 2-byte block that matches the stored CRC-8\n3. Verifies final CRC32; retries if incorrect\n\n---\n\n## 📉 Compression Ratio\n\n| Block | Input Size | Output Size | Compression Ratio |\n|-------|------------|-------------|--------------------|\n| 2B    | N          | N/2 + 4     | ~50% + 4B header   |\n\n---\n\n## 🌍 Real World Example\n\nTrying to compress the text `\"ABC\"`:\n\n```bash\necho -n \"ABC\" \u003e abc.txt\npython enpakk.py compress abc.txt abc.enpakk\npython decompress.py abc.enpakk result.txt\n```\n\n- Decompression is **fast**, as the brute-force space for 3 ASCII characters (6 bytes) is small.\n- However, the compressed file (`abc.enpakk`) is **larger** than the original (`abc.txt`) due to the 4-byte CRC32 header + 1.5 bytes (rounded up) for data.\n\n---\n\n## ❗ Limitations\n\n- The **main issue** in the current implementation is **CRC32 collisions** between the original and decompressed data. If a guessed output has the same CRC32 as the original input but different content, it will be falsely accepted as correct.\n- Decompression is non-deterministic and becomes **exponentially slower** with larger files.\n- Not guaranteed to produce the original data — only something with the same CRC32.\n\n---\n\n## 🧪 Why?\n\n- For fun\n- For hacking\n- For demonstrating the concept of lossy hash-based compression + verification\n\n---\n\n## ⚠️ Disclaimer\n\nThis is **not** practical compression. It’s a CPU-intensive, brute-force method and may take an unreasonable amount of time to decompress. You've been warned 😅\n\n---\n\n## 📜 License\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzefir1990%2Fenpakk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzefir1990%2Fenpakk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzefir1990%2Fenpakk/lists"}