---
schema_version: "1"
id: adc714893aca7b4a8dcf85b37d14514c756f5b926738e50a3b07dda823039929
title: Crypto (dw::Crypto)
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.4/dw-crypto.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.4/dw-crypto
source_site: docs.mulesoft.com
content_type: documentation
content_hash: b46cbbd049094cea1233cdac3357517b8f09500a6e99d89b2e37aec7ba51e4ce
description: MuleSoft Documentation Site
release: "2.4"
latest: false
---
# Crypto (dw::Crypto)

このモジュールは、MD5 や SHA1 などの一般的なアルゴリズムによって暗号化を実行する関数を提供します。

このモジュールを使用するには、DataWeave コードにインポートする必要があります。その方法として、たとえば、行 ​`import * from dw::Crypto`​ を DataWeave スクリプトの ヘッダーに追加します。

## [](#関数)関数

<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">​<a href="https://docs.mulesoft.com/jp/dataweave/2.4/dw-crypto-functions-hmacbinary" class="xref page">HMACBinary</a></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">入力コンテンツの HMAC ハッシュを計算します (秘密暗号化キーを使用)。</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">​<a href="https://docs.mulesoft.com/jp/dataweave/2.4/dw-crypto-functions-hmacwith" class="xref page">HMACWith</a></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">入力コンテンツの HMAC ハッシュを計算し (秘密暗号化キーを使用)、その結果を小文字の 16 進文字列に変換します。</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">​<a href="https://docs.mulesoft.com/jp/dataweave/2.4/dw-crypto-functions-md5" class="xref page">MD5</a></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">MD5 ハッシュを計算し、そのバイナリ結果を小文字の 16 進文字列に変換します。</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">​<a href="https://docs.mulesoft.com/jp/dataweave/2.4/dw-crypto-functions-sha1" class="xref page">SHA1</a></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">SHA1 ハッシュを計算し、その結果を小文字の 16 進文字列に変換します。</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">​<a href="https://docs.mulesoft.com/jp/dataweave/2.4/dw-crypto-functions-hashwith" class="xref page">hashWith</a></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">指定されたアルゴリズムを使用してバイナリコンテンツのハッシュ値を計算します。</p></td>
</tr>
</tbody>
</table>