Help Centre › Functions & Formulas
This article describes the RPA Crypto functionality to encrypt text.
For a full list of available functions, please read CRYPTO functions.
Description
The Encrypt text function encrypts a text string using a Fernet key. The result is an encrypted token that can only be decrypted with the same key.
Setting it up
To use the Encrypt text function, follow these instructions:
{{popups:rpas/add:action=crypto-encrypt}}
Once on a process map:
- Navigate to the process where you would like to add the Encrypt text function
- Click on the green button’s drop-down (right side of the green button labelled “Process”)
- On the menu that appears, click on the “+ Activity” item
- From here you can select the CRYPTO Encrypt text option
- Click "Add" once you are done
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| Text | Yes | Text | - | The text to encrypt |
| Key | Yes | Text | - | The Fernet encryption key |
| Variable | No | Text | encrypted | Variable name to store the encrypted token |
Output variables
| Variable | Type | Description |
|---|---|---|
| {encrypted} | String | The encrypted Fernet token |
Errors
| Error | Description |
|---|---|
| Invalid key | The provided key is not a valid Fernet key |
Tips
- Use crypto-generate-key to create a Fernet key first
- Store the key securely in the Vault