---
schema_version: "1"
id: 713d36fc5f213f176f20b1fb35a41f59410aa3d0adb8b33b2fd7024ff80401fd
title: SHA1
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.5/dw-crypto-functions-sha1.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.5/dw-crypto-functions-sha1
source_site: docs.mulesoft.com
content_type: documentation
content_hash: a0626fbabf0ac6d0537a5f22c6a19d0f1910549dbfeff05bb5da796aa571b984
description: MuleSoft Documentation Site
release: "2.5"
latest: false
---
# SHA1

## [](#sha11)SHA1(content: Binary): String

SHA1 ハッシュを計算し、その結果を小文字の 16 進文字列に変換します。

### [](#パラメーター)パラメーター

<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 25%;">
<col style="width: 75%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">名前</th>
<th class="tableblock halign-left valign-top">説明</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>content</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">暗号化するバイナリ入力値。</p></td>
</tr>
</tbody>
</table>

### [](#例)例

次の例では、SHA1 アルゴリズムを使用してバイナリ値を暗号化します。

#### [](#ソース)ソース

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

#### [](#出力)出力

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