decayfmt: an open-source file format that corrupts itself every time you open it
alex_verem · x · 2026-09-01
Developer Arav Panwar released decayfmt, an open-source Rust tool that makes files decay on access: encode an image or text file, and every open damages the file on disk before showing it — no undo, no recovery from the file alone.
- Decay speed lives in the filename: photo.idcy1 loses 9.5% of pixel data per open; photo.idcy10 scrambles 63% on the first open. Renaming changes how hard the next open hits.
- Corruption comes from OS randomness, so there's no replayable seed to rebuild the original.
- Image transparency is never touched (decay appears as color noise, not holes); text only swaps printable characters, so sentences rot into something that still looks like language.
- The author calls it "a social contract enforced by math" — it isn't encryption or secure deletion, and anyone with a backup or hex editor can beat it.
In an era where digital files copy for free and AI can regenerate almost anything, a tool that makes reading cost part of the file is a deliberately backwards design.
More from coding & agent
- Vibe-coded dashboard leaked franchise financials before anyone logged in — shauntrennery · 2026-10-16
- Fintech HR built a sourcing agent on 60,000 past applicants — 30 qualified candidates in a month — G0NZ0BOY · 2026-10-16
- Orchestrating a 100-image portrait of humanity for aliens with ChatGPT, Argon and p5.brush — dx8xb · 2026-10-16
- 3x DGX Spark cluster runs GLM-5.3-Flash locally behind a proxy, 1.75M tokens/day at 119W — Teknium · 2026-10-16
- Builder's one rule for trusted desktop agents: read freely, but sending, deleting, buying always ask first — No_Fan5310 · 2026-10-16
- GPT-built unifi-simulator makes MikroTik switches appear inside UniFi Network — Pytlicek · 2026-10-16