SHA256 SubroutineUsage:
hash = SHA256(file_or_data [, option_flags])
Description:
Returns a SHA256 hash (or empty string on error) of a file or data provided to the subroutine. The optional option_flags parameter determines what to hash as well as how to return the hash value.
The option flags are set using bits 0 and 1 as follows:
Bit 0 Clear = file_or_data contains the name of a file to hash.
Set = file_or_data contains the (string or binary) data to hash.
Bit 1 Clear = return the hash as a string value.
Set = return the hash as a binary value.
Example:
|