Contact Us 1-800-596-4880

MD5

MD5(content: Binary): String

Computes the MD5 hash and transforms the binary result into a hexadecimal lower case string.

Parameters

Name Description

content

A binary input value to encrypt.

Example

This example uses the MD5 algorithm to encrypt a binary value.

Source

%dw 2.0
import dw::Crypto
output application/json
---
{ "md5" : Crypto::MD5("asd" as Binary) }

Output

{ "md5": "7815696ecbf1c96e6894b779456d330e" }