Ed2k-hash: Difference between revisions

From AniDB
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 2: Line 2:
----
----
The main reason for this is that it avoids adding of double db entries. AniDB will not allow you to add a file with the same ed2k link as an existing one.<br>
The main reason for this is that it avoids adding of double db entries. AniDB will not allow you to add a file with the same ed2k link as an existing one.<br>
The filesize and md4 hash of a file is used to identify it globally.<br>
The file size and md4 hash of a file is used to identify it globally.<br>
You are allowed to add files without ed2k links to AniDB, however you should edit those files later and add the missing ed2k links. Once you added a certain number of files without ed2k links you may no longer add new files without ed2k links but have to edit your old files first.
You are allowed to add files without ed2k links to AniDB, however you should edit those files later and add the missing ed2k links. Once you added a certain number of files without ed2k links you may no longer add new files without ed2k links until you edit your old files first.
 
 
===Why use ed2k instead of another type of hash if you do not support downloads?!===
----
:* The combination of md4 hash and file size makes ed2k effective for uniquely identifying files.
:* Since ed2k hashes can be passed back and forth within a URL with both the hash and file size in a widely recognized format it is a convenient method for adding or checking files.
:* Other hashes are good for validating if a file is corrupt if you already know what file you are comparing it against, but cannot necessarily globally identify a file in the system like the ed2k.
:* AniDB was designed around ed2k, although other hashes have been added to the file records for validation, the internal structure is based on ed2k.  If the site goes through a complete redesign then maybe another hash will be made the primary hash, but at this point, this is not likely to change.




===Which software can be used to generate them?!===
===Which software can be used to generate them?!===
----
----
If you have the file(s) on your harddisk or on cd you can use all kinds of tools to generate the ed2k link and other additional info:
If you have the file(s) on your hard disk or on CD you can use all kinds of tools to generate the ed2k link and other additional info:
:* [[AniDB_O'Matic]] by BennieB/PetriW can generate ed2k links. It generates ed2k link, md5, sha-1, crc32 in one go and also lists stuff like codec, resolution, bitrates, ...
:* [[AniDB_O'Matic]] by BennieB/PetriW can generate ed2k links. It generates ed2k link, md5, sha-1, crc32 in one go and also lists stuff like codec, resolution, bitrates, ...
:* [http://sourceforge.net/projects/ed2k-tools/ ed2k_hash] another tool which is commandline based and also available for linux.
:* [http://sourceforge.net/projects/ed2k-tools/ ed2k_hash] another tool which is commandline based and also available for Linux.
:* [http://malich.content.no-ip.org/filehash/filehash-0.5.2.zip Filehash] a little java programm written by Malich. for further info on it read [http://www.anidb.net/forum/viewtopic.php?t=77 here]
:* [http://malich.content.no-ip.org/filehash/filehash-0.5.2.zip Filehash] a little java program written by Malich. for further info on it read [http://www.anidb.net/forum/viewtopic.php?t=77 here]
:* [http://www.slavasoft.com/hashcalc/ Hashcalc] can create md5, sha-1, crc32, ed2k-links and various other hashes in 1 go. though at least 1 case is known in which it created a wrong ed2k!
:* [http://www.slavasoft.com/hashcalc/ Hashcalc] can create md5, sha-1, crc32, ed2k-links and various other hashes in 1 go. though at least 1 case is known in which it created a wrong ed2k!


[[Category: Definitions]][[Category: Guidelines]]
[[Category: Definitions]][[Category: Guidelines]]

Revision as of 05:04, 10 May 2005

Why does anidb require ed2k links?!


The main reason for this is that it avoids adding of double db entries. AniDB will not allow you to add a file with the same ed2k link as an existing one.
The file size and md4 hash of a file is used to identify it globally.
You are allowed to add files without ed2k links to AniDB, however you should edit those files later and add the missing ed2k links. Once you added a certain number of files without ed2k links you may no longer add new files without ed2k links until you edit your old files first.


Why use ed2k instead of another type of hash if you do not support downloads?!


  • The combination of md4 hash and file size makes ed2k effective for uniquely identifying files.
  • Since ed2k hashes can be passed back and forth within a URL with both the hash and file size in a widely recognized format it is a convenient method for adding or checking files.
  • Other hashes are good for validating if a file is corrupt if you already know what file you are comparing it against, but cannot necessarily globally identify a file in the system like the ed2k.
  • AniDB was designed around ed2k, although other hashes have been added to the file records for validation, the internal structure is based on ed2k. If the site goes through a complete redesign then maybe another hash will be made the primary hash, but at this point, this is not likely to change.


Which software can be used to generate them?!


If you have the file(s) on your hard disk or on CD you can use all kinds of tools to generate the ed2k link and other additional info:

  • AniDB_O'Matic by BennieB/PetriW can generate ed2k links. It generates ed2k link, md5, sha-1, crc32 in one go and also lists stuff like codec, resolution, bitrates, ...
  • ed2k_hash another tool which is commandline based and also available for Linux.
  • Filehash a little java program written by Malich. for further info on it read here
  • Hashcalc can create md5, sha-1, crc32, ed2k-links and various other hashes in 1 go. though at least 1 case is known in which it created a wrong ed2k!