---
schema_version: "1"
id: b2069697f2bdac31cc7d1a6024b47c7012eba82133c709d0128aead37c4adea6
title: SHA1
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.11/dw-crypto-functions-sha1.md
canonical_url: https://docs.mulesoft.com/dataweave/2.11/dw-crypto-functions-sha1
source_site: docs.mulesoft.com
content_type: documentation
content_hash: cb0038f2cc82ded97ea1efe97e851a26d889521a102c8cbb3f2286c850a1e5c6
description: MuleSoft Documentation Site
release: "2.11"
latest: false
---
---
product: DataWeave
version: 2.11
---

# SHA1

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

## SHA1(content: Binary): String

Computes the SHA1 hash and transforms the result into a hexadecimal, lowercase 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 SHA1 algorithm to encrypt a binary value.

#### Source

```DataWeave
%dw 2.0
import dw::Crypto
output application/json
---
{ "sha1" : Crypto::SHA1("dsasd" as Binary) }
```

#### Output

```JSON
{ "sha1": "2fa183839c954e6366c206367c9be5864e4f4a65" }
```
