FILE_CHECKSUM compute hash of file
read in chunks to avoid excessive RAM use
Contents
Inputs
- file: file or to hash
- hash_method: "MD5", "SHA-1", "SHA-256", etc.
- backend: backend to use
Outputs
- hash: string hash
- b: backend used
function [hash, b] = file_checksum(file, hash_method, backend) arguments file hash_method backend (1,:) string = ["java", "dotnet", "sys"] end o = stdlib.Backend(mfilename(), backend); hash = o.func(file, hash_method); b = o.backend; end