Changes between Version 62 and Version 63 of HashSourceCodes


Ignore:
Timestamp:
May 22, 2015, 10:10:27 AM (9 years ago)
Author:
os
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • HashSourceCodes

    v62 v63  
    44Hash code is based on [http://sourceforge.net/projects/guliverkli/ Media Player Classic]. In natural language it calculates: size + 64bit chksum of the first and last 64k (even if they overlap because the file is smaller than 128k). On opensubtitles.org is movie file size limited to '''9000000000 > $moviebytesize > 131072 bytes''', if is there any reason to change these sizes, let us know. Licence of [http://guliverkli.svn.sourceforge.net/viewvc/guliverkli/ hashing source codes] is [http://sourceforge.net/projects/guliverkli/ GPL]. Source codes was tested on Little Endian - DEC, Intel and compatible
    55
    6 Important: there might be cases, when your calculated hash is not 16 characters, so make sure you add zero-leading padding - some of source codes doesn't implement this, in PHP for example sprintf("%'\x00-16s", $moviehash);
     6Important: there might be cases, when your calculated hash is not 16 characters, so make sure you add zero-leading padding - some of source codes doesn't implement this.
    77
    88Feel free to edit/add source-codes if you have faster/better implementation. Also don't forget to check, if hash is right for test. '''Test these 2 files please to ensure your algo is completely OK''' (otherwise you can poison the database and that nobody wants):