Summary
Calculates a checksum for a given file and returns it in a hex
string.
Syntax
[Function("get-checksum")]
public string GetChecksum(string path, string algorithm)
Examples
Displays the MD5 checksum of a file.
<echo>Checksum=${file::get-checksum('Cegeka.exe', 'MD5')}"></echo>
Attributes
Type |
Description |
Function |
|
Parameters
Name |
Type |
Description |
path |
string |
The file for which to calculate a checksum. |
algorithm |
string |
The name of hash algorithm to use. |
Return Value
Type |
Description |
string |
The hex-formatted checksum of the specified file.
|