Skip to content

crc32

Written as crc32(argnum flags):options in a transform expression.

Minimum arguments 1
Maximum arguments 1
Default arguments 1
Argument modes SINGLE_PRIMITIVE

Generate CRC-32 hash from input string or bytes.

This transform computes the crc-32 hash of the input text and returns the hexadecimal digest string. The input can be any string or bytes-like object.

Notes:

  • Returns a 8-character hexadecimal string if ‘H’ flag is set, otherwise returns an integer
  • Input is encoded as UTF-8 if not already bytes
  • Not suitable for cryptographic purposes (use stronger hashes for security)
  • Consistent output for same input across different platforms
Flag Letter
noncaptive_input I
hex H
Input args: ["hello"]
Transforms: "crc32:"
Output: 907060870
Input args: ["hello"]
Transforms: "crc32:"
Output: 907060870
Input args: ["hello"]
Transforms: "crc32(1H):"
Output: "3610a686"