Hash¶
Returns the hash of the specified file.
1 |
|
Parameters¶
string id
The ID of the file to calculate the hash for.
( "SHA1"
| "SHA256"
| "SHA384"
| "SHA512"
| "MD5"
) hash
The name of the hash algorithm to use.
Returns¶
The calculated hash value of the file.
Remarks¶
Please do not use the MD5 hash algorithm unless required, as MD5 is considered a weak algorithm and is easily cracked.