-5
submitted 4 days ago by electric_nan@lemmy.ml to c/piracy@lemmy.ml

I'm looking at my client, and have a few torrents that are between 99 and 99.8% finished and have been stuck like that for weeks. Anyone know of a good tool, AI or otherwise, that can "fill in" the missing bits? Wouldn't that be cool?

you are viewing a single comment's thread
view the rest of the comments
[-] Nollij@sopuli.xyz 2 points 4 days ago

You are comparing it to a hash, following some extra rules on what the data could be. You have exactly the length of hash before you can reliably count on duplicates (and collisions happen much sooner). In torrent v1, this is SHA-1, which has a 160-bit (or 20 byte) hash. Which means for every single additional random bit, you have doubled the number of possible matches.

If your torrent has an uncommonly small chunk size of 256KiB, that's 261,144 bytes. Minus the 20 from above, and you have a likely 256^261124 chunks that match your hash. That's a number so large that Google calls it infinity. It would take you forever just to generate these chunks by brute force, since each would need to be created, then hashed, then the results stored somewhere. Many years ago, I remember someone doing this on CRC32 (32 bits/4 bytes) and 6 byte files. It took all night, and produced dozens of hash-matching files. You're talking many orders of magnitude bigger.

But then what? You'd still need to apply the other rules on what the data could be. Rules that are probably more CPU-intensive than the hash algorithm.

The one trick that AI might be able to use to save the day is that it may contain in its corpus the original file. In effect, that would make the AI an unlikely seeder.

this post was submitted on 28 Oct 2024
-5 points (35.3% liked)

Piracy

11 readers
9 users here now

Welcome to /c/piracy

No netflix or streaming services landlubbers allowed, this is pirates territory.

founded 5 years ago
MODERATORS