# CRC32

Hashes the given string or binary data using the [CRC32C (Castagnoli CRC32) algorithm](https://en.wikipedia.org/wiki/Cyclic_redundancy_check).

## Syntax

```sql
CRC32(plaintext);

```

## Arguments

* plaintext: the data to hash.

## Return Type

Integer

## Examples

```sql
SELECT CRC32('ohai');

```

```output

+---------------+
| CRC32('ohai') |
+---------------+
|    1335520080 |
+---------------+

```

***

Modified at: February 27, 2023

Source: [/db/v9.1/reference/sql-reference/string-functions/crc-32/](https://docs.singlestore.com/db/v9.1/reference/sql-reference/string-functions/crc-32/)

(An index of the documentation is available at /llms.txt)
