e-CryptIt Engine - Checksums Xojo Plugin |
|
CRC3 Class (console safe)
A class to calculate CRC3 checksums. On strings, bytes or streams.
Constructors
CRC3 (console safe) | Constructor with no parameters for the CRC3. |
Properties
ReferenceInitValue (console safe) | A reference starting value for the CRC for the selected CRC variation. |
Methods
Final (console safe) | Gets the final checksum from the CRC. |
shared PluginVersion | Returns the version number of the plugin. |
Reset (console safe) | Resets the CRC stream. |
Update (console safe) | Updates the CRC checksum with a string. |
UpdateByte (console safe) | Updates the CRC checksum with a single byte |
UpdateMemoryBlock (console safe) | Updates the CRC checksum with a memory block taking all bytes from the block. |
UpdateMemoryBlock (console safe) | Updates the CRC checksum with a memory block taking selected bytes from the block. |
Examples
Dim crc as CRC3 = new CRC3()
Dim value8 as UInt8
Dim testData as String = "123456789"
testData = testData.ConvertEncoding(Encodings.ASCII)
value8 = crc.Update(testData, crc.ReferenceInitValue)
MsgBox(testData,Hex(crc.Final(value8))
Supported Platforms:
macOS Intel 64 bitmacOS Apple SiliconWindows 32 bitWindows 64 bitWindows ARM 64 bitLinux 32 bitLinux 64 bitLinux ARM 32 bitLinux ARM 64 bitiOS