Default is to compute md5 hash for whole of each file. negative offsets => seek to offset position wrt end of file chunksize=Inf => whole file. Uses digest() which defaults to algo="md5"

quickhash(f, offsets = 0, chunksizes = Inf, CheckFileSize = TRUE, ...)

Arguments

f

Path to files to hash

offsets

integer offsets into file at which to read data

chunksizes

amount of data to read at each offset

CheckFileSize

see if the file has enough data to match the requirements defined by offsets and chunksizes and compute a digest of the entire file when there is insufficient data. The default value of TRUE is strongly recommended.

...

Additional arguments passed to the digest function.

Value

character vector containing hash values for file(s)

See also