Checksums Class

Entisoft Tools 2.0 Object Library
Version 2.0.6 Released 1999/11/14 03:27
<-- Previous || Index || Main || Topics || Next -->

Declarations Section, Checksum8 Function, Checksum16 Function, Checksum32 Function, ChecksumX Function, CRC32String Function

Declarations Section
Checksum 8 Function
"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.
Checksum 16 Function
"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.
Checksum 32 Function
"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.
Checksum X Function
"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.
CRC32 String Function
"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.

This Windows-based ActiveX DLL provides many useful routines through its function-bearing and data structure classes. Consult the Help file for more information, or call us at 1-310-472-3736. For the latest news and files, visit our home page on the World Wide Web: http://www.entisoft.com

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.