Re: Are metainfo files (.torrent) text files ?

"mayor_mccheese76" <[email protected]>
Newsgroups gmane.network.bit-torrent.general
Message-ID <[email protected]>

--- In [email protected], antipast0@y... wrote:
> My problem, ultimately, was that the SHA-1 hashes never matched the 

In .Net terms, raw binary format just means a Byte array is written
directly to the Stream.  I fail to see how endian-ness fits into the
picture, because all numbers are formated as strings. 

The System.Security.Cryptography.SHA1 generates the hashes correctly.
 Most likely your problem is building the proper Byte array to pass to
it.  I found it easiest to first do a recursive decent parse of the
torrent file to get the start and end byte positions of the info
block.  Then re-read that block into an array.

If you would like to see my (VB.net) code which calcs the infohash,
just send me a mail.   mypublicaccout at yahoo dot com.






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/dkFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/BitTorrent/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.