Command crypto.crc

The command crypto.crc is used for 16-bit CRC calculation and CRC-CCITT support.


  1. buffer [string]
    Hexadecimal representation that will be used to calculate CRC.
  2. size [integer]
    Number of bytes in buffer.
  3. type [string]
  4. variablereturn [string or integer]
    Variable that will store the return of the command.


In the example above, the buffer 30313233343536 will be used in the CRC calculation and the return of the command will be stored in the variable iReturn. This value will then be converted to a string using the command stringvariable and stored in the variable sReturn.

The return should be 19462.