VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

CRC32 Algorithm

Ed Preston  (3 Submissions)   Files/File Controls/Input/Output   Visual Basic 5.0   Advanced   Wed 3rd February 2021

Pure visual basic implementation of the CRC32 (Fletcher) checksum algorithm. Used for detection of data corruption. In short, this class provides an algorithm for computing a unique (sort of) numeric value that represents the composition of a file. For a faster/better method see Adler32 checksum. Note, Fletcher check insensitive to some single byte changes 0 <-> 255.

Inputs
CRC32(ByVal lngCRC32 As Long, ByRef bArrayIn() As Byte, ByVal dblLength As Double) As Long

Assumes
Files size assumed to be less than 2 gig. When passing byte arrays be carefull of the file size. It is best to break the file into chunks and call CRC32 multiple times.

Rate CRC32 Algorithm (8(8 Vote))

Download CRC32 Algorithm

CRC32 Algorithm Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters