PHP
Chilkat2 PHP
Example: Crypt2.CrcBd method
Demonstrates how to call the CrcBd method.Chilkat PHP Downloads
<?php
use Chilkat2\BinData;
use Chilkat2\Crypt2;
$crypt = new Crypt2();
$bd = new BinData();
$bd->AppendString('123456789', 'us-ascii');
$crc32 = $crypt->CrcBd('crc-32', $bd);
// The decimal value is 3421780262 (converted to hex is 0xCBF43926)
echo $crc32, "\n";
$crc8 = $crypt->CrcBd('crc8', $bd);
echo $crc8, "\n";