alt.hn

8/21/2026 at 4:09:50 PM

Decayfmt – a file format that corrupts itself a little every time you open it

https://github.com/aravpanwar/decayfmt

by unprovable

8/21/2026 at 7:47:04 PM

This is NOT a file format that corrupts itself. This is a file reader that corrupts files. There's a big difference. Nothing about the format itself causes or requires corruption. A better tagline would be "decayfmt is a social contract enforced by pinky promise".

by BugsJustFindMe

8/21/2026 at 8:50:29 PM

Dammit! This renders it completely unusable.

by aureate

8/22/2026 at 12:24:00 PM

True, but only a little bit each time you read it.

by mathgeek

8/21/2026 at 9:21:34 PM

Basically what you want is a custom PCIe device that can P2P DMA the DRM-encrypted frame data to GPU DRM-protected memory directly, more corrupted each time.

Can still be replayed, but would likely require special hardware to do so.

by serbuvlad

8/22/2026 at 12:25:39 AM

Just package it as "decayfs", a FUSE that corrupts stored data each time files of these formats are read.

by pveierland

8/21/2026 at 11:16:55 PM

I came here for this comment.

"A file format that corrupts itself a little every time you open it" simply isn't possible.

It's almost like the author is ragebaiting with this AI generated non-sense.

by gouggoug

8/22/2026 at 1:47:43 PM

this is genius territory

by AreShoesFeet000

8/22/2026 at 6:11:15 PM

decayfmt guy here, people are pressed by a repo that starts its readme with tung tung tung sahur

by aravpanwar

8/22/2026 at 6:28:16 PM

A good reminder that satire really is an art.

by gouggoug

8/22/2026 at 6:10:05 PM

Author of decayfmt here, it is indeed a pinky promise.

by aravpanwar

8/21/2026 at 7:21:33 PM

Reminds me of Tie::Hash::Cannabinol:

  Tie::Hash::Cannabinol is a completely useless demonstration of how to use Tie::StdHash to 
  pervert the behaviour of Perl hashes. Once a hash has been tied to Tie::Hash::Cannabinol, 
  there is a 25% chance that it will forget anything that you tell it immediately and a 
  further 25% chance that it won't be able to retrieve any information you ask it for. Any 
  information that it does return will be pulled at random from its keys.
  
  Oh, and the return value from exists isn't to be trusted either :)
[1] https://metacpan.org/pod/Tie::Hash::Cannabinol

by jasonpeacock

8/22/2026 at 10:30:54 AM

A virus I wrote in the '90s did just that - every time you opened a file, it damaged a small random part of it. My plan was also to randomly change the digits of numbers when printed on paper. I wrote this because a friend of mine managed to steal my source code during my naive XOR encryption. The "encrypted" files had a bunch of zeroes, and he saw my password. My virus worked. First, it damaged his working copy; then he tried to copy the backup, but in doing so, he damaged it, too, even though he claimed his backup diskette was write-protected. The virus didn't spread because I knew how evil it could be - just as evil as MS-DOS, which would run a hidden .COM file without thinking twice. So many fast typists like me were often mistyping "DIR" as "DUR", so I just put my virus in a hidden DUR.COM, copied it into the empty allocated space of COMMAND.COM (less than 200 bytes), and printed out "Bad command or file name". So, the theft was avenged!

P.S. I didn't specify, I didn't have my own computer, only used computers at school and my friend's personal computers, leaving "encrypted" files in case I forgot to bring my diskette. So, after he stole my code and some personal files, her never left me alone on his computer, but he never thought I would infect his computer so easily right in front of his eyes without him realizing it!

by nikolay

8/21/2026 at 6:40:32 PM

> This is a social contract

What's the other side of the contract? Why would a reader oblige to corrupt?

by jolmg

8/21/2026 at 10:36:04 PM

Probably satire. Like: "social contract: you will allow fools to choose your government".

by mdp2021

8/21/2026 at 10:19:55 PM

From what I remember, MS Paint do something similar when you would save the image as a jpeg. It would apply the algorithm each save and the image would degrade a bit each time. It was super fun.

by fnordlord

8/21/2026 at 11:27:23 PM

That happens with all editing programs for lossy formats, but it's on write, not on read.

by jolmg

8/21/2026 at 6:13:19 PM

Kind of like how human memory works, if I understand correctly.

by dang

8/21/2026 at 8:57:57 PM

A better analogy would be if every time you played the video file, the mechanism hallucinated a little, bringing in your current feelings as input to change the emotional undertones (and possibly characters and events) depicted in the video.

by yboris

8/21/2026 at 6:29:37 PM

Seems like there is no mechanism to allow non-corrupting reads from authorized processes? Begs the question then of what the point of this is. Pure novelty, or truly something that could be used in practice?

by angeldimitrov94

8/22/2026 at 6:12:35 PM

decayfmt creator here, its pure novelty.

by aravpanwar

8/22/2026 at 4:52:50 AM

I initially thought this would be part of a fuzzer.

by ricudis

8/22/2026 at 2:13:38 AM

This sounds like Excel when you open a CSV file.

by horticulturist

8/21/2026 at 7:18:42 PM

You might look into (Norbert) Weiner functions.

by m3047

8/21/2026 at 6:05:58 PM

Should have patented it and licensed it to Snap

by NDlurker

8/21/2026 at 6:07:49 PM

I thought something like this should be part of the file system to make it even more laborious to by pass

by m3kw9

8/21/2026 at 7:50:32 PM

A company I was at had a disk array that would do something like this. It wasn't a documented feature mind you. During writes, it would randomly zero out data within a file. So at least it didn't get progressively worse, but it was a bear to isolate. These were large media files so a quick look at the head/middle/tail could easily miss the problem areas.

by dylan604

8/22/2026 at 2:48:56 PM

The slop is strong on this one

by atulvi

8/22/2026 at 6:12:09 PM

decayfmt guy here, I was not going to make this without AI eitherway.

by aravpanwar

8/22/2026 at 4:04:11 PM

[dead]

by effnorwood

8/21/2026 at 7:06:37 PM

Would you please stop inventing more ways to enshittify the world?

by M95D