Sample code for 30+ languages & platforms
JavaScript

Example: Crypt2.CrcFile method

Demonstrates how to call the CrcFile method.
Note
This example is intended for running within a Chilkat.Js embedded JavaScript engine. All Chilkat JavaScript examples require Chilkat v11.4.0 or greater.
JavaScript
var crypt = new CkCrypt2();

var filePath = "c:/temp/someFile.dat";

var crc32 = crypt.CrcFile("crc-32",filePath);
console.log(crc32);

var crc8 = crypt.CrcFile("crc8",filePath);
console.log(crc8);