Skip to main content

checksum

Calculates the checksum of the supplied data.

Signature

checksum(
input: Instance | Context | {
exportables: Export.IExportables;
actionables: Export.IActionables | undefined;
},
trusted: boolean
): string

Parameters

NameTypeOptionalDescription
inputInstance | Context | objectNoSpecifies the input for the checksum calculation.
trustedbooleanNoSpecifies 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.