---
title: SHA1
url: https://www.tines.com/docs/formulas/functions/sha1/
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)*

# SHA1

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

Calculates the sha1 hash of text.

**Categories:** Hashing/Signing

## Syntax

```
SHA1(text)
```

## Examples

### Example 1

Input:

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

Formula:

```
SHA1(my_action.message)
```

Output:

```json
"8ef7e6b365afb1e01ec7c1a04cd505bbb5ee700a"
```

## Sample actions

```json
{
  "standardLibVersion": "13",
  "actionRuntimeVersion": "1",
  "agents": [
    {
      "disabled": false,
      "name": "My Action",
      "description": "",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "message": "Hello World"
        }
      },
      "position": {
        "x": 285,
        "y": 3105
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    },
    {
      "disabled": false,
      "name": "SHA1",
      "description": "",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "sha1": "=SHA1(my_action.message)"
        }
      },
      "position": {
        "x": 285,
        "y": 3195
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    }
  ],
  "links": [
    {
      "sourceIdentifier": 0,
      "receiverIdentifier": 1
    }
  ],
  "diagramNotes": []
}
```
