digest.hash_crc32b

STRINGdigest.hash_crc32bSTRINGs

Available in all subroutines.

Returns a CRC-32b digest for the string s. CRC-32b is not a cryptographic hash and is typically used as a fast error-detecting code for detecting changes in raw data. CRC-32b is a different algorithm than CRC-32 and is not likely to return the same results given the same input string.

Example

declare local var.crc32b STRING;
set var.crc32b = digest.hash_crc32b("123456789");
# var.crc32b is now "2639f4cb"

User contributed notes

We welcome comments that add use cases, ideas, tips, and caveats. All comments will be moderated before publication. To post support questions, visit our support center and we'll find you the help you need.