JavaScript
JavaScript
Compute CRC32 of a File
Calculates the CRC32 of a file's contents and returns the 32-bit CRC as a hex string.
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.
var zipCrc = new CkZipCrc();
// Use a relative for absolute path to the file..
var crc = zipCrc.FileCrc("qa_data/hamlet.xml");
var hexStr = zipCrc.ToHex(crc);
console.log(hexStr);