Sample code for 30+ languages & platforms
Dart

Compute CRC32 of a File

Calculates the CRC32 of a file's contents and returns the 32-bit CRC as a hex string.

Chilkat Dart Downloads

Dart
import 'package:chilkat/chilkat.dart';

void main() {
  final zipCrc = CkZipCrc();
  // Use a relative for absolute path to the file..
  final crc = zipCrc.fileCrc('qa_data/hamlet.xml');
  final hexStr = zipCrc.toHex(crc);
  print(hexStr);
}