C#
C#
Example: Crypt2.CrcBd method
Demonstrates how to call the CrcBd method.Chilkat C# Downloads
Chilkat.Crypt2 crypt = new Chilkat.Crypt2();
Chilkat.BinData bd = new Chilkat.BinData();
bd.AppendString("123456789","us-ascii");
uint crc32 = crypt.CrcBd("crc-32",bd);
// The decimal value is 3421780262 (converted to hex is 0xCBF43926)
Debug.WriteLine(Convert.ToString(crc32));
uint crc8 = crypt.CrcBd("crc8",bd);
Debug.WriteLine(Convert.ToString(crc8));