# ComputeMD5

| **Name**    | ***ComputeMD5***                                                                                          |
| ----------- | --------------------------------------------------------------------------------------------------------- |
| Syntax      | ComputeMD5 (String str)                                                                                   |
| Purpose     | To compute the MD5 hash of a text value.                                                                  |
| Description | Returns MD5 hash (Message Digest Algorithm 5 – 128-bit (16-byte) hexadecimal value), of the input string. |
| Return Type | String                                                                                                    |
| Parameter   | str \[System.String] – The raw string to HASH                                                             |

![](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/OpT6tGK50d51gtnJCDDe/0.png)

**Example**

In this example, we are passing the required parameters to the function transformation object using a *Variables* object.

Where,

*str =* Hello World!

![](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/zWUqy6k5m8c869UBQAam/1.png)

Right-click on the function transformation object and select *Preview Output.* You can see that Astera has returned the MD5 hashed value, a 128-bit (16-byte) hexadecimal number, typically represented as a 32-character string of the specified string.

![](https://content.gitbook.com/content/zEifS4h8yurLAAwiGNX2/blobs/01kO1VJHMiWyhnZCvR7l/2.png)
