e-CryptIt Engine REALbasic Plugin

Crc32 Method

To compute a checksum using the CRC32 algorithm.

Crc32(
   bytes as String,
   crc as Integer) as Integer

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

Integer

Remarks

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

myString = Right("0000000"+HEX(mycrc), 8)

Supported Platforms:

  • PPC - MacOS 9
  • Carbon - MacOS 9 and MacOS X (PEF)
  • MacOS X PPC - (Mach-O)
  • MacOS X Universal Binary (Mach-O)
  • Win32 - Windows
  • Linux x86

    See Also

    GlobalMethods Global