FILE_CHECKSUM compute hash of file
read in chunks to avoid excessive RAM use
Contents
Inputs
- file: file or to hash
- method: "MD5", "SHA-1", "SHA-256", etc.
Outputs
- hash: string hash
function hash = file_checksum(file, hash_method, backend) arguments file {mustBeTextScalar} hash_method {mustBeTextScalar} backend (1,:) string = ["java", "dotnet", "sys"] end fun = hbackend(backend, "file_checksum"); hash = fun(file, hash_method); end