---
schema_version: "1"
id: 5bde31153ff0d5ede7cdf995fe4778bd928943f66a55a0165cecda4961f77515
title: Crypto (dw::Crypto)
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.11/dw-crypto.md
canonical_url: https://docs.mulesoft.com/dataweave/2.11/dw-crypto
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 0ec12758a1ba5b5131e7476b214fe3aeb857eb639e426df9d7ca4364815bfa5a
description: MuleSoft Documentation Site
release: "2.11"
latest: false
---
---
product: DataWeave
version: 2.11
---

# Crypto (dw::Crypto)

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

This module provide functions that perform encryptions through common algorithms, such as MD5, SHA1,
and so on.

To use this module, you must import it to your DataWeave code, for example, by adding the line
`import * from dw::Crypto` to the header of your DataWeave script.

## Functions

<table><colgroup><col> <col></colgroup><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><p><a href="https://docs.mulesoft.com/dataweave/2.11/dw-crypto-functions-hmacbinary">HMACBinary</a></p></td><td><p>Computes an HMAC hash (with a secret cryptographic key) on input content.</p></td></tr><tr><td><p><a href="https://docs.mulesoft.com/dataweave/2.11/dw-crypto-functions-hmacwith">HMACWith</a></p></td><td><p>Computes an HMAC hash (with a secret cryptographic key) on input content, then transforms the result into a lowercase, hexadecimal string.</p></td></tr><tr><td><p><a href="https://docs.mulesoft.com/dataweave/2.11/dw-crypto-functions-md5">MD5</a></p></td><td><p>Computes the MD5 hash and transforms the binary result into a hexadecimal lower case string.</p></td></tr><tr><td><p><a href="https://docs.mulesoft.com/dataweave/2.11/dw-crypto-functions-sha1">SHA1</a></p></td><td><p>Computes the SHA1 hash and transforms the result into a hexadecimal, lowercase string.</p></td></tr><tr><td><p><a href="https://docs.mulesoft.com/dataweave/2.11/dw-crypto-functions-hashwith">hashWith</a></p></td><td><p>Computes the hash value of binary content using a specified algorithm.</p></td></tr></tbody></table>
