e-CryptIt Engine - Checksums Xojo Plugin |
|
CRC1 Class (console safe)
A class to calculate CRC1 checksums. On strings, bytes or streams.
Constructors
CRC1 | Constructor with no parameters for the CRC1. |
Properties
Methods
Final | Gets the final checksum from the CRC. |
shared PluginVersion | Returns the version number of the plugin. |
Reset | Resets the CRC stream. |
Update | Updates the CRC checksum with a string. |
UpdateByte | Updates the CRC checksum with a single byte |
UpdateMemoryBlock | Updates the CRC checksum with a memory block taking all bytes from the block. |
UpdateMemoryBlock | Updates 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 bitMacOS X Cocoa 64 bitWindows 32 bitWindows 64 bitLinux 32 bitLinux 64 bitLinux ARMUnsupported Platforms:
MacOS X Carbon