crc32(str)
Computes the CRC-32 checksum for the input string and returns it as an unsigned integer.
Syntax
crc32(str);
Arguments
| Name | Description |
|---|---|
|
str |
Input string to calculate checksum for. |
Events
Applicable in all events.
Example
when HTTP_REQUEST {
str = "any string for crc32 calculation"
crc = crc32(str);
debug("crc is %d\n", crc);
}
Supported Version
FortiADC version 5.2.x and later.