|
CRC - Generic CRC functions |
CRC - Generic CRC functions
use CRC;
$crc = crc32("123456789");
$crc = crc16("123456789");
$crc = crcccitt("123456789");
$crc = crc($input,$width,$init,$xorout,$poly,$refin,$refout);
The CRC module calculates CRC sums of all sorts. It contains wrapper functions with the correct parameters for CRC-CCITT, CRC-16 and CRC-32.
Oliver Maul, oli@42.nu
CRC algorithm code taken from ``A PAINLESS GUIDE TO CRC ERROR DETECTION ALGORITHMS''.
The author of this package disclaims all copyrights and releases it into the public domain.
|
CRC - Generic CRC functions |