iCrypto_CRC16

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > Crypto >

iCrypto_CRC16

 

Description

 

Calculates a 16-bit checksum (Cyclic Redundancy Check) for a specified string.

 

Syntax

 

checksum16 = iCrypto_CRC16(sText, nSeed)

 

Returns

 

Number, 16-bit checksum

 

Parameters

 

Name

Type

Optional

Meaning

sText

String

No

Input text to calculate CRC for

nSeed

Number

No

Seed for the calculation

 

Remarks

 

Restrictions

 

See also

 

iCrypto_CRC32, iCrypto_TestCRC16, iCrypto_TestCRC32

 

Examples

 

Uses "Crypto"

 

MsgBox 0, iCrypto_CRC16("This is a test", 16)