LOG IN SIGN UP
Documentation

digest.hash_crc32()

Calculates the 32-bit Cyclic Redundancy Checksum with reversed bit ordering of a string, like that used by bzip2. Returns a hex-encoded string in byte-reversed order, e.g. 181989fc instead of fc891918.

Format

STRING
digest.hash_crc32(STRING input)

Examples

1
2
3
declare local var.crc32 STRING;
set var.crc32 = digest.hash_crc32("123456789");
# var.crc32 now contains "181989fc"