e-CryptIt Engine - Checksums Xojo Plugin

CRC1 Class (console safe)

A class to calculate CRC1 checksums. On strings, bytes or streams.

Object
   CRC1

class CRC1

Constructors

CRC1Constructor with no parameters for the CRC1.

Properties

ReferenceInitValueA reference starting value for the CRC for the selected CRC variation.

Methods

FinalGets the final checksum from the CRC.
shared PluginVersionReturns the version number of the plugin.
ResetResets the CRC stream.
UpdateUpdates the CRC checksum with a string.
UpdateByteUpdates the CRC checksum with a single byte
UpdateMemoryBlockUpdates the CRC checksum with a memory block taking all bytes from the block.
UpdateMemoryBlockUpdates the CRC checksum with a memory block taking selected bytes from the block.

Examples

Dim crcOne as CRC1 = new CRC1()
Dim value8 as UInt8
Dim testData as String = "123456789"

testData = testData.ConvertEncoding(Encodings.ASCII)

value8 = crcOne.Update(testData, crcOne.ReferenceInitValue)
MsgBox(testData,Hex(crcOne.Final(value8))

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