Ed2k-hash: Difference between revisions

Jump to navigation Jump to search
135 bytes removed ,  13 May 2009
m
no edit summary
mNo edit summary
Line 30: Line 30:
A file is hashed in 9728000 byte ''chunks'', using the md4 algorithm, and produces a 128 bit hash for each chunk. For files with only one chunk, the ed2k hash ''is'' the md4 of the file, however for hashes with 2 or more chunks the the hash of each chunk is appended to those before it, and an further md4 of the hashes themselves provides the ed2k hash of the file. Pseudo code is given below:
A file is hashed in 9728000 byte ''chunks'', using the md4 algorithm, and produces a 128 bit hash for each chunk. For files with only one chunk, the ed2k hash ''is'' the md4 of the file, however for hashes with 2 or more chunks the the hash of each chunk is appended to those before it, and an further md4 of the hashes themselves provides the ed2k hash of the file. Pseudo code is given below:


:if filesize is less than <font color="blue">or equal to</font> 9728000:
:if filesize is less than {{colour|blue|or equal to}} 9728000:
:: return md4 of file
:: return md4 of file
:for chunk of size upto 9728000 in file:
:for chunk of size upto 9728000 in file:
:: append md4 of chunk to hashlist
:: append md4 of chunk to hashlist
:<font color="red">if filesize is a multiple of 9728000:
:{{colour|red|if filesize is a multiple of 9728000:}}
::append md4 of null to hashlist</font>
::{{colour|red|append md4 of null to hashlist}}
:return md4 of hashlist
:return md4 of hashlist


Line 42: Line 42:
=== List of which clients use which method ===
=== List of which clients use which method ===
[[Avdump]] use both methods. It will creq files from blue to red and store blue in file description ({{AniDBShortLink|f7047|Alternative ed2k}}).
[[Avdump]] use both methods. It will creq files from blue to red and store blue in file description ({{AniDBShortLink|f7047|Alternative ed2k}}).
*<font color="blue">edonkey2000 v0.5.0 to v1.4.3</font>
*{{colour|blue|edonkey2000 v0.5.0 to v1.4.3}}
*<font color="blue">mldonkey (2.5.30.17 tested)</font>
*{{colour|blue|mldonkey (2.5.30.17 tested)}}
*<font color="blue">shareaza (1.8 tested)</font>
*{{colour|blue|shareaza (1.8 tested)}}
*<font color="blue">HashCalc Version (2.01 tested)</font>
*{{colour|blue|HashCalc Version (2.01 tested)}}
*<font color="blue">edonkey-tool-hash (0.4.0 tested)</font>
*{{colour|blue|edonkey-tool-hash (0.4.0 tested)}}
*<font color="blue">fsum (2.51 tested)</font>
*{{colour|blue|fsum (2.51 tested)}}
*<font color="blue">ed2k_hash (0.4.0 tested)</font>
*{{colour|blue|ed2k_hash (0.4.0 tested)}}
*<font color="blue">hashgen (0.0.6 tested)</font>
*{{colour|blue|hashgen (0.0.6 tested)}}
*<font color="red">edonkey2000 until v0.5.0</font>
*{{colour|red|edonkey2000 until v0.5.0}}
*<font color="red">emule (0.46c tested)</font>
*{{colour|red|emule (0.46c tested)}}
*<font color="red">AOM (0.5.5.239 tested)</font>
*{{colour|red|AOM (0.5.5.239 tested)}}
*<font color="red">webaom (v1.13 tested)</font>
*{{colour|red|webaom (v1.13 tested)}}
*<font color="red">ed2k code by Stephane D'Alu (1.4 tested)</font>
*{{colour|red|ed2k code by Stephane D'Alu (1.4 tested)}}


=== List of affected files, by fileID ===
=== List of affected files, by fileID ===
1,633

edits

Navigation menu

MediaWiki spam blocked by CleanTalk.
MediaWiki spam blocked by CleanTalk.