Archived

This topic is now archived and is closed to further replies.

vj09

.torrent file format

Recommended Posts

Hi,

Im not sure if this is the appropriate forum, but i didn get any answers from any other

torrent forum that is technically into it.

Can any one tell me what encoding is used in .torrent file. I can see that

bencoding is used, but after that the piece information looks like this.

×B"y‰Kž{zA¹Æ¬êé

What format is it? Or is it encrypted? If pls tell me what encryption it is.

thnx in advance

Share this post


Link to post
Share on other sites

@ultima: thnx for the reply. Thats helped. But i tried calculating SHA1 for the same content, but the format looks entirely different. Is it because the content in .torrent file is encrypted?

Share this post


Link to post
Share on other sites

No. Each byte in the 20 byte SHA1 hash can be represented by 2 hexadecimal characters, so expanding the 20 byte hash would yield the 40 hex-character hash you're probably comparing with.

That, or you're not hashing the correct piece of data. To be sure, we're talking pieces here, not files.

Share this post


Link to post
Share on other sites
tabzz: what are you talking about?

I wonder is it possible to fetch from .torrent file exact location of file being seeded by others?

Share this post


Link to post
Share on other sites

The location where? :|

If you mean the webseed, it's not an obligation. 99% of .torrent files don't contain any webseed links.

Share this post


Link to post
Share on other sites
No.

Ok, so it's possible but that knowledge is hidden. IMO the easiest way to learn this is to read the BitTorrent source code and think.

Thanks & cheers

Share this post


Link to post
Share on other sites
Is it possible?
No.

How you extrapolated from that

Ok, so it's possible

is beyond me.

I don't think you understand what peer-to-peer means, or what hashes are, so I recommend that you start your research and reading there rather than in some source code.

BitTorrent isn't voodoo. It doesn't simply hide a plain old HTTP download underneath its layers of complexity; that'd be stupid. Again, you're looking for something that isn't there, and isn't possible at the protocol level.

Share this post


Link to post
Share on other sites