---
title: SHA256
url: https://www.tines.com/docs/formulas/functions/sha256/
kind: formula-function
---

*[tines.com](https://www.tines.com/llms.txt) › [Docs](https://www.tines.com/docs/llms.txt) › [Formulas](https://www.tines.com/llm/docs/formulas.md) › [Functions](https://www.tines.com/llm/docs/formulas/functions.md)*

# SHA256

*[View on tines.com](https://www.tines.com/docs/formulas/functions/sha256/)*

Calculates the sha256 hash of text, expressed in hex.

**Categories:** Hashing/Signing

## Syntax

```
SHA256(text)
```

## Examples

### Example 1

Input:

```json
{
  "my_action": {
    "message": "This is a private message for your eyes only!"
  }
}
```

Formula:

```
SHA256(my_action.message)
```

Output:

```json
"f23127ca63dbfea2d0535bafee7957bab11a0a50e67cb7b24adec0d3736c47ff"
```

## Sample actions

```json
{
  "standardLibVersion": "13",
  "actionRuntimeVersion": "1",
  "agents": [
    {
      "disabled": false,
      "name": "SHA256",
      "description": "",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "sha256": "=SHA256(my_action.string)"
        }
      },
      "position": {
        "x": -7050,
        "y": -1530
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    },
    {
      "disabled": false,
      "name": "My Action",
      "description": "",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "string": "Apples are the best fruit"
        }
      },
      "position": {
        "x": -7050,
        "y": -1635
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    }
  ],
  "links": [
    {
      "sourceIdentifier": 1,
      "receiverIdentifier": 0
    }
  ],
  "diagramNotes": []
}
```
