Navigation:  thinBasic Modules > Crypto >

iCrypto_CRC16

Previous pageReturn to chapter overviewNext page

 

Description

 

The iCrypto_CRC16() function calculates a 16-bit checksum (Cyclic Redundancy Check) for a specified string.

 

Syntax

 

iCrypto_CRC16(sText AS STRING, nSeed AS NUMBER) AS NUMBER

 

Returns

 

Returns AS NUMBER

The 16-bit checksum.

 

Parameters

 

Name

Type

Optional

Meaning









sText AS STRING

The data string

  nSeed AS NUMBER

  The seed value

 

Remarks

 

 

Restrictions

 

 

See also

 

iCrypto_CRC32, iCrypto_TestCRC16, iCrypto_TestCRC32

 

Examples

 

iCrypto_CRC16("This is a Test for CRC16", 16)