e-CryptIt Engine - Checksums Xojo Plugin

EinhugurChecksum.Crc16 Method

To compute a checksum using the CRC16 algorithm. (Deprecated)

Crc16(
   bytes as String,
   crc as UInt16) as UInt16

Parameters

bytes
The bytes to calculate.
crc
The CRC value to calculate from.
Use 0 for the first round and then the previous CRC value if you are doing buffered calculations.

Returns

UInt16

Remarks

A good way to represent the checksum as an Hex string:

myString = Right("000"+HEX(mycrc), 4)

This method is deprecated. Use the CRC16 class in CITT mode to replace it.

Supported Platforms:

  • MacOS X Cocoa 32 bit
  • MacOS X Cocoa 64 bit
  • Windows 32 bit
  • Windows 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM

    Unsupported Platforms:

  • MacOS X Carbon

    See Also

    EinhugurChecksum Module