---
title: digest.hash_crc32
summary: null
url: >-
  https://www.fastly.com/documentation/reference/vcl/functions/cryptographic/digest-hash-crc32
---

```
STRING digest.hash_crc32(STRING s)
```

**Available in:** all subroutines

Returns a CRC-32 digest for the string `s`. CRC-32 is not a cryptographic
hash and is typically used as a fast error-detecting code for detecting
changes in raw data.

This algorithm is known as `CRC-32/BZIP2`.

## Example

```vcl
declare local var.crc32 STRING;
set var.crc32 = digest.hash_crc32("123456789");
# var.crc32 is now "181989fc"
```
