---
title: SHA256_BASE64
url: https://www.tines.com/docs/formulas/functions/sha256-base64/
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_BASE64

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

Calculates the sha256 hash of the text, expressed in base64.

**Categories:** Hashing/Signing

## Syntax

```
SHA256_BASE64(text)
```

## Examples

### Example 1

Input:

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

Formula:

```
SHA256_BASE64(my_action.message)
```

Output:

```json
"8jEnymPb/qLQU1uv7nlXurEaClDmfLeySt7A03NsR/8="
```

## Sample actions

```json
{
  "standardLibVersion": "13",
  "actionRuntimeVersion": "1",
  "agents": [
    {
      "disabled": false,
      "name": "SHA256_BASE64",
      "description": "",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "sha256_base64": "=SHA256_BASE64(my_action.string)"
        }
      },
      "position": {
        "x": -6780,
        "y": -1185
      },
      "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": -6780,
        "y": -1305
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    }
  ],
  "links": [
    {
      "sourceIdentifier": 1,
      "receiverIdentifier": 0
    }
  ],
  "diagramNotes": []
}
```
