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

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

## Annotations

- [Crypto Annotations](https://docs.mulesoft.com/dataweave/2.12/dw-crypto-annotations)
