CkPython
CkPython
Example: Crypt2.CrcBd method
Demonstrates how to call the CrcBd method.Chilkat CkPython Downloads
import chilkat
crypt = chilkat.CkCrypt2()
bd = chilkat.CkBinData()
bd.AppendString("123456789","us-ascii")
crc32 = crypt.CrcBd("crc-32",bd)
# The decimal value is 3421780262 (converted to hex is 0xCBF43926)
print(str(crc32))
crc8 = crypt.CrcBd("crc8",bd)
print(str(crc8))