Gnutella Forums

Gnutella Forums (https://www.gnutellaforums.com/)
-   General Gnutella Development Discussion (https://www.gnutellaforums.com/general-gnutella-development-discussion/)
-   -   Hash questions (https://www.gnutellaforums.com/general-gnutella-development-discussion/11581-hash-questions.html)

Stig May 20th, 2002 03:01 AM

Hash questions
 
Hi!
Nice if someone could give me a minute to explain som hash basics for me.

Is hashing a technique that tries to make an unique value out of a file? Can I calculate the average hex value of the bytes in a file and call it the files hash value?

Does Metadata screw up the hash?

Can Evil Forces fool the hash system? Like, can I make a (copy of a) file that has the same name, filesize and hash as the original, in order to f*** with those who want to download the file?

Kaya_man, do you smoke hash?

Thanks!

Stig Eide, (stigeide@yahoo.com)

gnutellafan May 20th, 2002 04:39 PM

Re: Hash questions
 
>Is hashing a technique that tries to make an unique value out of a file?

Yes


>Can I calculate the average hex value of the bytes in a file and call it the files hash value?

No (or at least I really dont think so)


>Does Metadata screw up the hash?

Different Metadata will result in different hash values (but then they are different files)


>Can Evil Forces fool the hash system? Like, can I make a (copy of a) file that has the same name, filesize and hash as the original, in order to f*** with those who want to download the file?

You could lie and say that you have a file with hash value X but when I dl and calculate the value I can see that you lied. Of course I have to have the full file if the hash value is from a full file hash. If I got different parts of the file from different sources I couldnt tell which one sent me the bad data. This is solved with the Partial File Sharing Protocol (see my post in this forum)


All times are GMT -7. The time now is 03:17 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.