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

# SHA1

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

## SHA1(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" }
```
