maci.comparefilehash
compare hash of file to stored hash
Compares a hash of the source file against the previously created file with the stored hash data, from using the createfilehash partner function, and returns a boolean if the hashes match.
maci.comparefilehash -> bool
Basic Example of comparing hash of a file against the stored hash using default positional parameters
In this example, we simply input the source file to hash and the destination file with the stored hash data using the comparefilehash function and pass the file locations as arguments to the function, the hashed data is then compared against the source file, and assign the returned result to a variable.
To create the initial stored hashed data, see the partner function createfilehash. This tool is designed to dependently work with its partner function.
partner functions
Functions that are related for comparefilehash
maci.createfilehash -> Creates hash of a file, and stores the hash data to a newly created file
parameters & arguments
Describes all parameter functionality and accepted data types
Last updated