CRC32

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Core Language > BuiltIn Functions > Cryptography >

CRC32

 

Description

 

Calculate check sum of a string using CRC32 algorithm

 

Syntax

 

n = CRC32(string_expression)

 

Returns

 

Number

 

Parameters

 

Name

Type

Optional

Meaning

String_Expression

String

No

String to calculate CRC32 check sum

 

Remarks

 

A cyclic redundancy check (CRC) is an error-detecting code used to detect data corruption. When sending data, short check sum is generated based on data content and sent along with data. When receiving data, check sum is generated again and compared with sent check sum. If the two are equal, then there is no data corruption.

 

Additional info:

https://en.wikipedia.org/wiki/Cyclic_redundancy_check

https://github.com/gcc-mirror/gcc/blob/master/libiberty/crc32.c

 

Restrictions

 

See also

 

Examples