Modules

Crc

moduleSource

Available on macOS, Linux, Windows, Wasm

#import "Crc";

A 64-bit CRC checksum: crc64 for detecting corrupted data.

Example↗
assert(crc64("jacket") == crc64("jacket"));

Procedures#

(s: string) -> u64

A 64-bit CRC of s (polynomial 0x42f0e1eba9ea3693, bits fed high first, start and end value all ones). It detects accidental corruption; it is not a cryptographic digest.

assert(crc64("jacket") == crc64("jacket"));
assert(crc64("jacket") != crc64("jackel"));
↗