D
D
Danil Antoshkin2015-08-15 15:34:20
Java
Danil Antoshkin, 2015-08-15 15:34:20

What hash is better to get from a file?

We are writing a program to search for duplicates, which hash to use for further checking files, we need speed of work, using MD5 a file of 20 GB was checked for 10 minutes

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sumor, 2015-08-15
@TwerTrue

For large files, consider the hash of not the entire file, but, for example, the initial megabyte or a tricky sequence - ten pieces of megabytes from different parts of the file. Anyway, if you suspect a duplicate, then you need to double-check with another hash or direct comparison.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question