---
schema_version: "1"
id: 445e3a48f2b40f2a40742c949ec0c41b215a65c70517d345dbb455de062da397
title: MD5
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/data-cloud/data-cloud-query-guide/references/data-cloud-sql-reference/scalar-func/string-func/md5.md
canonical_url: https://developer.salesforce.com/docs/data/data-cloud-query-guide/references/dc-sql-reference/md5.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 6c49f787c2f1d3478920bc67853ac3a569284ae724b5a4dbde5e60b5827105e0
products:
  - Data 360 Query Guide
  - Data 360 Developer Documentation
---
# `MD5`

**Applies to:** ✅ Data 360 SQL ✅ Tableau Hyper API

Calculates the MD5 hash of data, returning the result in hexadecimal.

## Syntax

```sql
md5(<data>)
```

## Arguments

### Required

- `<data>`: The text or bytea data to hash.

## Returns

Returns a text value that contains the hexadecimal MD5 hash.

## Considerations

- MD5 is not cryptographically secure for security-critical applications.
- Use for checksums and data integrity, not for password hashing.

## Examples

### Calculate MD5 Hash

Get the MD5 hash of a string.

```sql
SELECT md5('abc') AS result;
```

Returns `'900150983cd24fb0d6963f7d28e17f72'`.

## Related Documentation

- [String Types](https://developer.salesforce.com/docs/data/data-cloud-query-guide/datatype/string.md)
