Re:Magnet link generator
by LeoPanthera on Saturday February 23, 2019 @09:18PM
(#19236740)
Is it possible to create a magnet link for a file you know a SHA-1/256 hash for? It's my understanding that the hash used in magnets is not the same.
[ Parent
| on HN ]
No. You need to match all the metadata in the info part of the torrent file, the final hash is a hash of that info dictionary. The fields you lack are largely name and piece size, but without the original file you cannot create the hash of each correctly sized piece. If you have the constituent file (not just it's sha1) you could eventually get it by trying common piece sizes and knowing its name.
*Edit, I overlooked somethkng.