---
title: HMAC_SHA1_BASE64
url: https://www.tines.com/docs/formulas/functions/hmac-sha1-base64/
kind: formula-function
---

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

# HMAC_SHA1_BASE64

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

Converts text into a Base64 encoded SHA-1 hash using a hash message authentication code (HMAC).

**Categories:** Hashing/Signing

## Syntax

```
HMAC_SHA1_BASE64(text, secret)
```

## Examples

### Example 1

Input:

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

Formula:

```
HMAC_SHA1_BASE64(my_action.message, CREDENTIAL.hmac_secret_key)
```

Output:

```json
"puebBWCIh5KN7hP9hBsb8lwYaf4="
```

## Sample actions

```json
{
  "standardLibVersion": "13",
  "actionRuntimeVersion": "1",
  "agents": [
    {
      "disabled": false,
      "name": "My Action",
      "description": "",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "message": "This is a private message for your eyes only!"
        }
      },
      "position": {
        "x": 30,
        "y": 2835
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    },
    {
      "disabled": false,
      "name": "HMAC_SHA1_BASE64",
      "description": "",
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "hmac_sha1_base64": "=HMAC_SHA1_BASE64(my_action.message, CREDENTIAL.hmac_secret_key)"
        }
      },
      "position": {
        "x": 30,
        "y": 2925
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null
    }
  ],
  "links": [
    {
      "sourceIdentifier": 0,
      "receiverIdentifier": 1
    }
  ],
  "diagramNotes": []
}
```
