# sha256

Return SHA-256 digest of binary column(`bytes` type) as hex string

## Signature

> SHA256(bytesCol)

## Usage Examples

These examples are based on the [Real time Quick Start](https://docs.pinot.apache.org/release-1.1.0/basics/getting-started/quick-start#realtime).

```sql
select event_id, location, SHA256(location) AS hash
from meetupRsvp 
limit 1
```

| event\_id | location                           | hash                                                             |
| --------- | ---------------------------------- | ---------------------------------------------------------------- |
| 282776561 | 80406178a3d70a3d714041d5c28f5c28f6 | e3cdf4be84d2c7e442693b0e2f98c39b80c862a9eaf0fd444fee2bd56c1d461b |

{% hint style="info" %}
The row returned will be different if you run this example as the data is ingested in real-time.
{% endhint %}
