💥decayfmt Corrupts Files Every Open
Files that self-destruct each time you open them
TL;DR
Introducing decayfmt, a file format that corrupts itself every time it's opened. .idcy and .tdcy files degrade based on an instability parameter x, with no recovery possible.
decayfmt is a new file format where each open permanently damages the file on disk. The corruption level depends on the filename (x), making higher numbers more destructive. This affects workflows relying on persistent data integrity. For instance, .idcy files for images and .tdcy for text degrade with each access, impacting any project that needs stable storage. Each channel in an image is corrupted independently at a probability p = 1 - exp(-x / 10), while text files replace bytes randomly based on the same formula. The header remains unchanged, but the payload decays over time.
Key Points
Run 'decayfmt encode' to convert source files into .idcy or .tdcy formats; original length is preserved but content degrades on each open (25 words)
Images (.idcy) corrupt independently per channel with probability p, while text (.tdcy) replaces bytes randomly based on the same formula (30 words)
The instability parameter x in filenames determines corruption level: higher x means faster decay; no recovery mechanism exists (31 words)
decayfmt supports only images and text files; other binary formats are not supported by v1 release, which is MIT licensed (29 words)
Each open writes corruption to disk before display, ensuring changes persist even if the program crashes or gets killed after opening (30 words)
Why It Matters
If you're working with sensitive documents or images that need persistent integrity, decayfmt's self-destruct mechanism is a non-starter. For developers relying on stable file formats for critical data storage, this format poses significant risks. Anyone using .idcy or .tdcy files should be wary of the corruption that occurs each time they access their data.
Frequently Asked Questions
Why does this matter?
If you're working with sensitive documents or images that need persistent integrity, decayfmt's self-destruct mechanism is a non-starter. For developers relying on stable file formats for critical data storage, this format poses significant risks. Anyone using .idcy or .tdcy files should be wary of the corruption that occurs each time they access their data.
What happened?
Introducing decayfmt, a file format that corrupts itself every time it's opened. .idcy and .tdcy files degrade based on an instability parameter x, with no recovery possible.
Comments
Be the first to comment
Enjoyed this article?
Get it daily. 7am. Free. Reads in 5 minutes.
Join 3,303 builders reading daily.