Jan 08, 2014, 14:52 pm
Thought id ask here is it possible to generate an infohash or magnet link from knowing a sha1 of a file? forgive me if you don't understand what I mean.
Generating a Bittorrent Infohash from sha1?
|
Jan 08, 2014, 14:52 pm
Thought id ask here is it possible to generate an infohash or magnet link from knowing a sha1 of a file? forgive me if you don't understand what I mean.
Jan 08, 2014, 15:15 pm
(This post was last modified: Jan 08, 2014, 15:15 pm by -nelly-. Edited 1 time in total.)
If you have the SHA-1 of a file, e.g.:
Code: 90cf01baaa749c868aed334cbdf546b9d435c206 Just add the magnet in front of it. e.g.: Code: magnet:?xt=urn:btih: Which will give you the magnet. e.g.: Code: magnet:?xt=urn:btih:90cf01baaa749c868aed334cbdf546b9d435c206
Jan 08, 2014, 19:10 pm
I do understand what you mean, and the answer is that no, it isn't possible. An infohash (in it's own right or expressed as a magnet link) is an SHA1 hash of a bencoded set of keys containing among other things a set of SHA1 hashes of "pieces" of files.
You cannot generate an infohash unless you have the original file.
Jan 08, 2014, 20:05 pm
(Jan 08, 2014, 15:15 pm)-nelly- Wrote: If you have the SHA-1 of a file, e.g.: An "info hash" is the SHA-1 of the info dictionary part of a torrent file, which will not be the same as the SHA-1 hash of any file within the torrent. Consider that if you rename a file, the SHA-1 of the file itself will not change, but the hash of a torrent generated after the name change will be different from the hash of a torrent generated before. |
« Next Oldest | Next Newest »
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Remote Bittorrent not working | surferbroadband | 0 | 5,587 |
Mar 31, 2023, 00:03 am Last Post: surferbroadband |
|
BitTorrent v2 | Matthew | 5 | 13,202 |
Jan 13, 2022, 19:04 pm Last Post: Matthew |
|
new owner of BitTorrent | WW3hasstarted | 1 | 11,484 |
Oct 29, 2020, 06:39 am Last Post: dueda |
|
BitTorrent V2 coming soon | WW3hasstarted | 0 | 8,591 |
Oct 12, 2020, 09:45 am Last Post: WW3hasstarted |
|
Libtorrent Adds Support for BitTorrent v2 | ill88eagle | 7 | 12,572 |
Sep 13, 2020, 15:27 pm Last Post: ill88eagle |