Class Module 6 Members

Checksums Class

Entisoft Tools 2.0 Object Library · Checksums · 5 Functions · 0 Properties · 0 Subroutines

Showing 6 of 6
Declarations
Declarations
The functions within this group calculate various checksums and CRC (cyclical redundancy check) operations on strings. Checksums and CRCs provide numeric values which are used to help detect data transmission and data storage errors. Copyright 1998 Entisoft
Section
Checksum16
Checksum 16
"16-bit Checksum" Generate the 16-bit checksum for the characters in string vValue. Checksum is returned as a Long (Integer) value between 0 and 65,536. The checksum is the sum of the ASCII values of all of the characters within the string. Uses modulo addition so that the function will return the 16 least significant bits of the sum.
Function
Checksum32
Checksum 32
"32-bit Checksum" Generate the 32-bit checksum for the characters in string vValue. The checksum is the sum of the ASCII values of all of the characters within the string. Checksum is returned as a Long (Integer) value.
Function
Checksum8
Checksum 8
"8-bit Checksum" Generate the 8-bit checksum for the characters in string vValue. The checksum is the sum of the ASCII values of all of the characters within the string. Checksum is returned as a one-character string. Uses modulo addition so that the function will return the 8 least significant bits of the sum.
Function
ChecksumX
Checksum X
"Exclusive Or Checksum" Generate a "checksum" by performing the Xor ("Exclusive Or") operation on each of the adjacent characters within a string. Checksum is returned as a one-character string. This is not really a "checksum" because that usually refers to sum of the ASCII values of the characters.
Function
CRC32String
CRC32 String
"32-bit Cyclical Redundancy Check (CRC)" Return the 32-bit CRC value for the characters within a string. Unlike a checksum, the position of the characters within string vValue affects the result. Matching CRC values are a much more reliable indicator of the accuracy of data than matching checksum values.
Function