Copied from here http://trac.opensubtitles.org/projects/opensubtitles/wiki/HashSourceCodes