AutoIt
AutoIt
Example: Crypt2.CrcBd method
Demonstrates how to call the CrcBd method.Chilkat AutoIt Downloads
$oCrypt = ObjCreate("Chilkat.Crypt2")
$oBd = ObjCreate("Chilkat.BinData")
$oBd.AppendString("123456789","us-ascii")
Local $iCrc32 = $oCrypt.CrcBd("crc-32",$oBd)
; The decimal value is 3421780262 (converted to hex is 0xCBF43926)
ConsoleWrite($iCrc32 & @CRLF)
Local $iCrc8 = $oCrypt.CrcBd("crc8",$oBd)
ConsoleWrite($iCrc8 & @CRLF)