Moo_Hash  -  Get the hash of a file or string.

Moo_Hash ( sHash; sInput; bFile );

This functions lets get the MD5, SHA1, SHA256 or SHA512 hash of a file or string.

Parameters

NameTypeRequiredDefaultDescription
sHashStringYes Which hash algorithm to use.
sInputStringYes The input file or string.
bFileBooleanNoFalseTrue if sInput is a file.

Return Value

Returns either a hash, or an error code.

Errors

Error CodeDescription
Moo_Hash|Err_1Invalid number of arguments.
Moo_Hash|Err_2Unknown hash input.
Moo_Hash|Err_3Invalid input.
Moo_Hash|Err_4Input file doesn't exist.
Moo_Hash|Err_5Error generating hash.