We've been making changes to how we organize and display our docs. Our work isn't done but we'd love your feedback.

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 is now "181989fc"