LOG IN SIGN UP
Documentation

digest.hash_crc32b()

Calculates the 32-bit Cyclic Redundancy Checksum of a string, as specified by ISO/IEC 13239:2002 and section 8.1.1.6.2 of ITU-T recommendation V.42 and used by Ethernet (IEEE 802.3), V.42, FDDI, gzip, zip, and PNG. Returns a hex-encoded string in byte-reversed order, e.g. 2639f4cb instead of cbf43926.

Format

STRING
digest.hash_crc32b(STRING input)

Examples

1
2
3
declare local var.crc32b STRING;
set var.crc32b = digest.hash_crc32b("123456789");
# var.crc32b now contains "2639f4cb"