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

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