CRYPTO Generate key function

The CRYPTO Generate key function in RPA.

Help CentreFunctions & 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:

  1. Navigate to the process where you would like to add the Generate key function
  2. Click on the green button’s drop-down (right side of the green button labelled “Process”)
  3. On the menu that appears, click on the “+ Activity” item
  4. From here you can select the CRYPTO Generate key option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
Key TypeNoSelectfernetThe type of key to generate: fernet, aes128, aes256, random32, or random64
VariableNoTextkeyVariable name to store the generated key

Output variables

VariableTypeDescription
{key}StringThe 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

Related functions

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.