X4 Help Center
7.5 7.4 German English
Auto Light Dark
Auto Light Dark
7.5 7.4 German English

Digest Calculator

This adapter generates or calculates the hash code (RSA, MD5 etc.) of the input data.

Properties

Operation

Determines which operation the adapter executes

Possible values: Calculate: Calculate hash code

Parameters

algorithm

Algorithm used to calculate the hash code

Possible values:

  • MD5: Use Message Digest 5 algorithm (default)

  • SHA: Use Secure Hash (0) algorithm

  • SHA-1: Use Secure Hash 1 algorithm

  • SHA-256: Use Secure Hash 256 algorithm

  • CRC: Use Cyclic Redundancy Check algorithm

  • ADLER: Use Adler algorithm

Status values

1

The operation was executed successfully.

-1

The operation failed due to a technical error.

Output

This adapter outputs a UTF-8-encoded XML document containing the algorithm used and the calculated hash code:

<digest type="Algorithm"><!--Hash code of the input data--></digest> 

For example, the adapter outputs the following XML document:

<digest type="MD5">2e5941901e8b5e214dcc5032dfce71bb</digest>