---
schema_version: "1"
id: 1898ae390ee4ef032b01ee68b8abc296173a846706616f237b7af1c7b343f883
title: MD5
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/guides/mc-programmatic-content/ssjs_platformUtilityMD5.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ssjs_platformUtilityMD5.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 340dc622cb422ec727509b0963616870c80a357cd3fa9b8555941700880a1683
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# MD5

## Overview

Returns an MD5 hash for a given string value.

### Syntax

MD5(1, 2)

### Function Properties

<!--complex table-->

| Ordinal | Type   |              | Description                                                             |
| ------- | ------ | ------------ | ----------------------------------------------------------------------- |
| **1**   | string | **Required** | String to evaluate                                                      |
| **2**   | string |              | Character set to use when decoding string value, such as ASCII or UTF-8 |

## Example

```
<script runat="server">
     Platform.Function.MD5(stringValue,"UTF-8");
</script>
```
