file names based on file content

Posted by Mark on Stack Overflow See other posts from Stack Overflow or by Mark
Published on 2010-04-30T18:26:35Z Indexed on 2010/04/30 18:27 UTC
Read the original article Hit count: 135

Filed under:

So iow, some algorithm to generate a unique, reasonable length filename based on binary file content. Two files that have the same binary content should have the same name. Obviously there would be limits to this, as presumably you couldn't have unique reasonable length filenames for each of a large set of large files only differing at a handful of bit positions. But presumably there is some heuristic, best approximation to this that for example exploits known attributes of typical image files. If I had the name of some algorithm that does this I can google it and find other approaches as well.

© Stack Overflow or respective owner

Related posts about algorithm