Contact Us 1-800-596-4880

Crypto (dw::Crypto)

This module provide functions that perform encryptions through common algorithms, such as MD5, SHA1, and so on.

To use this module, you must import it to your DataWeave code, for example, by adding the line import * from dw::Crypto to the header of your DataWeave script.

Functions

Name Description

HMACBinary

Computes an HMAC hash (with a secret cryptographic key) on input content.

HMACWith

Computes an HMAC hash (with a secret cryptographic key) on input content, then transforms the result into a lowercase, hexadecimal string.

MD5

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

SHA1

Computes the SHA1 hash and transforms the result into a hexadecimal, lowercase string.

hashWith

Computes the hash value of binary content using a specified algorithm.