---
schema_version: "1"
id: cfcc2037627882bbc42e89aa2033889fe4e5b89be376103b19dad99e0b23398c
title: Handlebars Encryption Functions
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/handlebars/reference/encryption/mcn-handlebars-reference-encryption.md
canonical_url: https://developer.salesforce.com/docs/marketing/handlebars-for-marketing-cloud-next/references/mcn-handlebars-encryption-references/mcn-handlebars-reference-encryption.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: be4ea54460f565ae8060f6e6498d9df49ef258f3042a13131e5d3f73bf6d17af
products:
  - Handlebars for Marketing Cloud Next
  - Marketing Cloud
---
# Handlebars Encryption Functions

Use the Handlebars encryption functions to calculate hashes.

This section contains information about these Handlebars functions.

| Function Name                                           | Description                                                  |
| ------------------------------------------------------- | ------------------------------------------------------------ |
| [encode](https://developer.salesforce.com/docs/marketing/handlebars-for-marketing-cloud-next/references/mcn-handlebars-encryption-references/mcn-handlebars-reference-encryption-encode.md) | Calculates a cryptographic hash using a specified algorithm. |
| [md5](https://developer.salesforce.com/docs/marketing/handlebars-for-marketing-cloud-next/references/mcn-handlebars-encryption-references/mcn-handlebars-reference-encryption-md5.md)       | Converts a string to a 128-bit hexadecimal MD5 hash.         |
| [sha1](https://developer.salesforce.com/docs/marketing/handlebars-for-marketing-cloud-next/references/mcn-handlebars-encryption-references/mcn-handlebars-reference-encryption-sha1.md)     | Converts a string to a 160-bit hexadecimal SHA-1 hash.       |
| [sha256](https://developer.salesforce.com/docs/marketing/handlebars-for-marketing-cloud-next/references/mcn-handlebars-encryption-references/mcn-handlebars-reference-encryption-sha256.md) | Converts a string to a 256-bit hexadecimal SHA-2 hash.       |
| [sha512](https://developer.salesforce.com/docs/marketing/handlebars-for-marketing-cloud-next/references/mcn-handlebars-encryption-references/mcn-handlebars-reference-encryption-sha512.md) | Converts a string to a 512-bit hexadecimal SHA-2 hash.       |
