Search found 4 matches

Go to advanced search

by kirill
Fri Sep 28, 2012 6:38 pm
Forum: Developing
Topic: General question to hash algorithms
Replies: 3
Views: 6478

General question to hash algorithms

Hi, I noticed that similar sites like OpenSubtitles use different hashing algorithms. For example,TheSubDB just does an MD5 hash over the first and last 64 KB. Filesize is not used. Their Python example is misleading. http://thesubdb.com/api/ Is there an advantage of the OpenSubtitles hashing, which...
by kirill
Fri Sep 28, 2012 6:31 pm
Forum: Developing
Topic: Hashing Code in Javascript + HTML5
Replies: 6
Views: 9352

Re: Hashing Code in Javascript + HTML5

Yeah, thanks.That one works better
by kirill
Sun Sep 23, 2012 12:12 pm
Forum: Developing
Topic: Hashing Code in Javascript + HTML5
Replies: 6
Views: 9352

Re: Hashing Code in Javascript + HTML5

I changed the code, so now it works with the slice method, but sometimes the hash is wrong. From my tests 7 out of 10 are hashed correctly. Does someone know where the problem is? hash.htm <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> ...
by kirill
Thu Sep 20, 2012 6:38 pm
Forum: Developing
Topic: Hashing Code in Javascript + HTML5
Replies: 6
Views: 9352

Hashing Code in Javascript + HTML5

Hi, I didn't find any Hashing Algo for Javascript in the wiki, but here is an implementation: function OpenSubtitlesHash(uploadInput, callback){ function getHash(arrayBuffer) { var tmp; var fsize = arrayBuffer.byteLength; var arr = new Uint16Array(arrayBuffer, 0, 8192 * 4); var hash = { 3 : 0, 2 : 0...

Go to advanced search