CRYPTO Encrypt text function

The CRYPTO Encrypt text function in RPA.

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

  1. Navigate to the process where you would like to add the Encrypt text 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 Encrypt text option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
TextYesText-The text to encrypt
KeyYesText-The Fernet encryption key
VariableNoTextencryptedVariable name to store the encrypted token

Output variables

VariableTypeDescription
{encrypted}StringThe encrypted Fernet token

Errors

ErrorDescription
Invalid keyThe 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

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.