crc16()

Calculates the CRC-16 checksum (Modbus variant) for a given string.

Syntax

crc16({input_string})

Parameters

Parameter Type Description Comment
input_string String The string for which the CRC-16 checksum will be calculated.

Return Value

Examples

Calculate the CRC-16 checksum for the string “HelloWorld”

crc16("HelloWorld"); // returns the CRC-16 checksum for the string

See also

crc16
crc32
sha256
sha256_f
md5
md5_f