Jan 12, 2014, 09:24 am
I calculated the SHA-1 of a downloaded file from a torrent, and that number does not match the BTIH
How do I create the magnet of a file without using the torrent app ?
|
Jan 12, 2014, 09:24 am
I calculated the SHA-1 of a downloaded file from a torrent, and that number does not match the BTIH
Jan 12, 2014, 10:17 am
(This post was last modified: Jan 12, 2014, 10:19 am by SectorVector. Edited 1 time in total.)
Please see:
https://pirates-forum.org/Thread-Generat...-from-sha1 This is my understanding. Hope I have got it right. The Info Hash (BTIH) is that of the .torrent file (metafile). The contents of the .torrent file itself can be found in the specification below. https://wiki.theory.org/BitTorrentSpecif..._Structure You can google for .torrent editor, upload a sample torrent file and view the contents. The BTIH is the 20-byte SHA-1 digest of the final .torrent file NOT the downloaded file(s). The .torrent has a lot more info like the trackers, filename(s), SHA-1 of the pieces of the file(s) comprising the torrent etc. If you wish to write a standalone program, for whatever reason, it needs to do all that work which goes into the creation of .torrent file. You should be able to get the source of free bittorrent clients depending on the programming language your are using. From that you can try to cull the necessary code.
Jan 12, 2014, 15:40 pm
Specifically, the Info Hash is the SHA-1 of the info dictionary part of the torrent file, which does not include the tracker announce list or comments.
To generate a magnet from a file, or collection of files, first you would have to generate the bencoded info dictionary as per this specification. The SHA-1 hash of that would be used to generate your magnet link. All that is purely academic without having a torrent client somewhere seeding the data using a torrent file with the same info hash. |
« Next Oldest | Next Newest »
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
I made CMS less than 15 kilobytes, flat file | Turboblack | 0 | 934 |
Nov 15, 2024, 15:56 pm Last Post: Turboblack |
|
Need help with a Selenium coding problem - Clicking a button using XPath | Avantika_Sharmaa24 | 2 | 7,615 |
Aug 21, 2023, 05:34 am Last Post: Avantika_Sharmaa24 |
|
Cannot display one data column using reg query | RobertX | 0 | 6,980 |
Apr 25, 2023, 07:24 am Last Post: RobertX |
|
looking to create onion site | lancerackslol | 0 | 10,452 |
Aug 02, 2022, 11:32 am Last Post: lancerackslol |
|
Hex editing a nes console emulator save file | thesnare | 0 | 12,016 |
Feb 20, 2022, 09:25 am Last Post: thesnare |