Go
Go
Example: Crypt2.CrcBd method
Demonstrates how to call the CrcBd method.Chilkat Go Downloads
crypt := chilkat.NewCrypt2()
bd := chilkat.NewBinData()
bd.AppendString("123456789","us-ascii")
crc32 := crypt.CrcBd("crc-32",bd)
// The decimal value is 3421780262 (converted to hex is 0xCBF43926)
fmt.Println(crc32)
crc8 := crypt.CrcBd("crc8",bd)
fmt.Println(crc8)
crypt.DisposeCrypt2()
bd.DisposeBinData()