Compute CRC-32
compute_crc32Compute CRC-32 checksums for inline bytes, text, or sandbox files to verify ZIP entry integrity.
Instructions
The ZIP checksum (IEEE 802.3 CRC-32, the engine's slice-by-8 implementation) of inline bytes / text or a sandbox file (streamed in 1 MiB chunks). seed continues a running CRC across consecutive chunks; expect compares against a known value (matches). Use it to cross-check an entry's crc32 from list_zip_entries against a file on disk.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Running CRC to continue from (chain calls over consecutive chunks). | |
| text | No | UTF-8 text. Exclusive with dataBase64 / sourcePath. | |
| expect | No | Optional expected CRC (1–8 hex digits, optional 0x prefix, e.g. '4e08bfb4'); the result carries `matches`. | |
| dataBase64 | No | Bytes as base64. Exclusive with text / sourcePath. | |
| sourcePath | No | Relative path of a file inside the sandbox (streamed, ≤ 1 GiB). Exclusive with dataBase64 / text. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hex | Yes | 8 lowercase hex digits. | |
| seed | Yes | ||
| crc32 | Yes | Unsigned 32-bit CRC. | |
| matches | No | Present when `expect` was given. | |
| byteLength | Yes |