Help Centre › Functions & Formulas
This article describes the RPA Crypto functionality to generate an encryption key.
For a full list of available functions, please read CRYPTO functions.
Description
The Generate key function creates a new encryption key of the specified type. The key can be used for encryption, decryption, or as a random secret.
Setting it up
To use the Generate key function, follow these instructions:
{{popups:rpas/add:action=crypto-generate-key}}
Once on a process map:
- Navigate to the process where you would like to add the Generate key 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 Generate key option
- Click "Add" once you are done
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| Key Type | No | Select | fernet | The type of key to generate: fernet, aes128, aes256, random32, or random64 |
| Variable | No | Text | key | Variable name to store the generated key |
Output variables
| Variable | Type | Description |
|---|---|---|
| {key} | String | The generated encryption key |
Errors
This action does not produce errors.
Tips
- Fernet is recommended for most use cases as it provides authenticated encryption
- Store generated keys in the Vault for safekeeping