How To Download Torrent Using Hash Info

Posted by4 years ago

Info_hash is the 20 byte sha1 hash of the bencoded form of the info value from the metainfo file.Note that this is a substring of the metainfo file. Torrents have an info_hash or and torrent hash that represents the torrent as a whole with all its files (it’s actually a hash of the “info” section of the original torrent file), and is calculated using SHA1 encryption. Dec 28, 2016 - download torrent file from info-hash or magnet, using libtorrent - torrent_download.py.

Archived

Is it possible to download a torrent using nothing but an info hash and a torrent client?

Title asks it all - if your friend gives you a legit info hash for a torrent, is there any way to download that torrent using only the hash and a torrent client? Like is there a way to copy/paste the hash into the client, and the client automatically finds trackers and starts downloading? Or do you have to find the torrent online and download it by clicking a link or downloading the torrent file?

Edit: This is assuming you do not have an internet browser to use magnet links. Assume you ONLY have a torrent client, an internet connection, and an info hash. I want to see if downloading torrents is possible without using a browser.

36% Upvoted

i am reading lately a lot about hash from torrents an magnetic links etc.

but there is a question i dont understand.

I have the hash of a file and the infohash of a torrent, is the infohash = hash of the file ?

If yes what if the torrent descripes 6 Files to download ?

If no what does it stand for.

EmetielEmetiel
Torrent

1 Answer

So I finally figured it out.

The “infohash” is the SHA1 Hash over the part of a torrent file that includes:

  1. ITEM: length(size) and path (path with filename)
  2. Name: The name to search for
  3. Piece length: The length(size) of a single piece
  4. Pieces: SHA1 Hash of EVERY piece of this torrent
  5. Private: flag for restricted access

To show this a little more I took a random torrent file and used the “BEncode Editor” from Ultima to make it more clearly to me.

As you can see the the red box marked the information part of the torrent file.The torrent file includes not the Hash of the items, but the hashes of every piece.

Download Using Hash Info

  • For item1 with: 1069496548
  • and item2 with: 223
  • It is together: 1069496771
  • With a piece size of: 524288
  • There are 2040 pieces. (1069496771/524288=2039.9032 approximately)
  • The pieces section includes 40800 byte of data what are 81600 + 2 chars in the file.
  • the +2 because 0x marks that this is hexadecimal.
  • A SHA1 hash has 40 0x chars or 20 Byte of data what are 2040 SHA1 hashes.

Add Torrent By Hash

I am sorry that this information is about a torrent that leads to a illegal movie, but i wanted to use a torrent that realy exists.

Vuze

Pirate Bay

EmetielEmetiel

Not the answer you're looking for? Browse other questions tagged hashtorrentinfo-hash or ask your own question.