---
schema_version: "1"
id: 7d2ce1b17250190816a32aba3ace4997720515c3b6b874575ed6c280768df249
title: MD5
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.12/dw-crypto-functions-md5.md
canonical_url: https://docs.mulesoft.com/dataweave/2.12/dw-crypto-functions-md5
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 0b17075d1d0bd4e394596e4756d73e9d7c50ae53f34c5e15a684b72df0a6a91d
description: MuleSoft Documentation Site
release: "2.12"
latest: false
---
---
product: DataWeave
version: 2.12
---

# MD5

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

## MD5(content: Binary): String

Computes the MD5 hash and transforms the binary result into a hexadecimal lower case string.

### Parameters

<table><colgroup><col> <col></colgroup><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><p><code>content</code></p></td><td><p>A binary input value to encrypt.</p></td></tr></tbody></table>

### Example

This example uses the MD5 algorithm to encrypt a binary value.

#### Source

```DataWeave
%dw 2.0
import dw::Crypto
output application/json
---
{ "md5" : Crypto::MD5("asd" as Binary) }
```

#### Output

```JSON
{ "md5": "7815696ecbf1c96e6894b779456d330e" }
```
