Sample code for 30+ languages & platforms
Dart

Example: Crypt2.CrcBd method

Demonstrates how to call the CrcBd method.

Chilkat Dart Downloads

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

void main() {
  final crypt = CkCrypt2();

  final bd = CkBinData();
  bd.appendString('123456789', 'us-ascii');

  final crc32 = crypt.crcBd('crc-32', bd);
  // The decimal value is 3421780262 (converted to hex is 0xCBF43926)
  print(crc32);

  final crc8 = crypt.crcBd('crc8', bd);
  print(crc8);
}