checksum
Calculates the checksum of the supplied data.
Signature
checksum(
input: Instance | Context | {
exportables: Export.IExportables;
actionables: Export.IActionables | undefined;
},
trusted: boolean
): string
Parameters
Name | Type | Optional | Description |
---|---|---|---|
input | Instance | Context | object | No | Specifies the input for the checksum calculation. |
trusted | boolean | No | Specifies if the input is trusted. When the source is not trusted some components of the checksum require additional calculation and this consumes more resources. |
Return value
Returns the checksum hash.
caution
If you use this function to calculate a server-side checksum based on data sent to that server, the data is generally untrustworthy. So, the trusted
argument of the checksum
function should be set to false
in those cases.