Hi
I need to identify video files and that as fast as possible.
Since I didn't find any hash which can generate an id within a second,
I only hashed a very small part of the file.
Basically I did this:
Is there something I can do to optimize the "hash"?
Or maybe there is already such a hash which is generated within a second.
I need to identify video files and that as fast as possible.
Since I didn't find any hash which can generate an id within a second,
I only hashed a very small part of the file.
Basically I did this:
Code:
Divide the data into 64 equal large sections
At the beginning of each section, read the first 8bytes and concat them together.
Take a MD5 hash from those 512bytes
Is there something I can do to optimize the "hash"?
Or maybe there is already such a hash which is generated within a second.