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

# 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.4/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.4/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.4/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.4/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.4/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>
