---
title: GENERATE_RSA_KEYS
url: https://www.tines.com/docs/formulas/functions/generate-rsa-keys/
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)*

# GENERATE_RSA_KEYS

*[View on tines.com](https://www.tines.com/docs/formulas/functions/generate-rsa-keys/)*

Generates a pair of public and private keys using the RSA encryption algorithm. The key size can be either 2048 or 4096, and the default is 2048.

**Categories:** Encryption

## Syntax

```
GENERATE_RSA_KEYS()
```

## Examples

### Example 1

Formula:

```
GENERATE_RSA_KEYS()
```

Output:

```json
[
  "public_key",
  "private_key"
]
```

## Sample actions

```json
{
  "standardLibVersion": "20",
  "actionRuntimeVersion": "4",
  "agents": [
    {
      "disabled": false,
      "name": "Event Transform Action",
      "description": null,
      "options": {
        "mode": "message_only",
        "loop": false,
        "payload": {
          "message": "=GENERATE_RSA_KEYS()"
        }
      },
      "position": {
        "x": 1230,
        "y": -510
      },
      "type": "eventTransformation",
      "timeSavedUnit": "minutes",
      "timeSavedValue": 0,
      "monitorAllEvents": false,
      "monitorFailures": false,
      "monitorNoEventsEmitted": null,
      "form": null,
      "cardIconName": null,
      "createdFromTemplateGuid": null,
      "createdFromTemplateVersion": null
    }
  ],
  "links": [],
  "diagramNotes": []
}
```
