Moo_Hash ( sHash; sInput; bFile );
This functions lets get the MD5, SHA1, SHA256 or SHA512 hash of a file or string.Parameters
Name | Type | Required | Default | Description |
sHash | String | Yes | Which hash algorithm to use. | |
sInput | String | Yes | The input file or string. | |
bFile | Boolean | No | False | True if sInput is a file. |
Return Value
Returns either a hash, or an error code.
Errors
Error Code | Description |
Moo_Hash|Err_1 | Invalid number of arguments. |
Moo_Hash|Err_2 | Unknown hash input. |
Moo_Hash|Err_3 | Invalid input. |
Moo_Hash|Err_4 | Input file doesn't exist. |
Moo_Hash|Err_5 | Error generating hash. |