Re: info_hash help
Olaf van der Spek <[email protected]>
| Newsgroups | gmane.network.bit-torrent.general |
|---|---|
| Message-ID | <[email protected]> |
Harold Feit - Depthstrike.com Administrator wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > When hashing the info dictionary, I believe that you hash just the > contents of the info dictionary, not the "infod6:" and corresponding > "e" The d6: should be hashed (it's 6:length). > > - -----Original Message----- > From: Adam Lyttle [mailto:[email protected]] > Sent: Monday, November 22, 2004 2:55 AM > To: [email protected] > Subject: [BitTorrent] info_hash help > > > > I am working on a BitTorrent client in VB (I'm much more proficient > with VB, so it's my language of choice). However, I have run into a > bit of a dilemma, and I have been unable to find any solutions to my > problems in source code (because VB is rarely used for protocols such > as this). So I was wondering if someone could help me out, preferably > explaining it in lamens terms so I can convert it into VB code. > > My problem is with the info_hash, I can't for the life of me work out > what needs to be hashed. I have been hashing values all day to try > and > get the same hash as other bittorrent clients that I am using, but I > have been unable to get it. > > The specification states that I need to hash the info dictionary > value, what does this mean exactly? What part of the following > example > would I hash? > > :infod6:lengthi184102912e4:name10:..........12:piece > lengthi262144e6:6:pieces3:...e > > Do I hash the 'e' encapsulation value at the end of the list > dictionary value? > > Do I hash the massive 'pieces' value? > > Do I put the 'infod' value into the hash? > > Also, I have noticed that there are two 'e' values at the very end of > the torrent file. Should I be placing both of these values into the > hash, or one, or none? > > Please help me out. > > Thanks > > > > > > - ------------------------ Yahoo! Groups Sponsor > - --------------------~--> > $9.95 domain names from Yahoo!. Register anything. > http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/dkFolB/TM > - --------------------------------------------------------------------~- > > > > Yahoo! Groups Links > > > > > > > > > - -- > No virus found in this incoming message. > Checked by AVG Anti-Virus. > Version: 7.0.289 / Virus Database: 265.4.1 - Release Date: 11/19/2004 > > > - -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.289 / Virus Database: 265.4.1 - Release Date: 11/19/2004 > > > -----BEGIN PGP SIGNATURE----- > Version: PGP 8.0.3 > > iQEVAwUBQaISjF8nceBm0DUaAQLw/gf/QUoDSbInsZSZT83ZzTgyHh4dH8OwG/KY > TO+VQ29zehYFQ5ajkcfEjHe7sT7LIeUVKHeua4GLVZZcRWDEC0UtmiVJfDDGzRqk > RJ+qz+0jWC3xV/KNHZfeK0cAEGRgdHZUydRRQcy1PdsFxaRYI7d/S3TLZ89fobBo > ZgJS4t4QRg8ZicBL/yo7EqS7vq1Ak+WvKcuEv3/YYQw4ht3OECvgoIOY19LRNRkC > qg1vni1dH6jk8tIEO3brRK7ncKHxOaEEL1LdES+qtmRrJewEwzYyPYaBGGZUAozb > zaKuKTw+4HfKU4p335h/ZMM4D0szEn2kEfDBy8T4ukunzyCHiu1urA== > =r4rG > -----END PGP SIGNATURE----- > > > > > > > Yahoo! Groups Links > > > > > > -- Olaf van der Spek http://xccu.sf.net/ ------------------------ 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/