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

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