murmur icon indicating copy to clipboard operation
murmur copied to clipboard

Murmur for files

Open jeusdi opened this issue 6 years ago • 0 comments

Could you provide any way to calculate a murmur hash code from a long file.

Using traditional MessageDigest in java, we are reading the file incrementally:

while ((bytesCount = fis.read(byteArray)) != -1) {
    digest.update(byteArray, 0, bytesCount);
}

// Get the hash's bytes
byte[] bytes = digest.digest();

Any ideas?

jeusdi avatar Jan 17 '20 07:01 jeusdi