CRYPTO Decrypt text function

The CRYPTO Decrypt text function in RPA.

Help CentreFunctions & Formulas

This article describes the RPA Crypto functionality to decrypt text.

For a full list of available functions, please read CRYPTO functions.


Description

The Decrypt text function decrypts a Fernet-encrypted token back to its original text. You must use the same key that was used for encryption.


Setting it up

To use the Decrypt text function, follow these instructions:

{{popups:rpas/add:action=crypto-decrypt}}

Once on a process map:

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

Input parameters

ParameterRequiredTypeDefaultDescription
TokenYesText-The encrypted Fernet token to decrypt
KeyYesText-The Fernet key used for encryption
VariableNoTextdecryptedVariable name to store the decrypted text

Output variables

VariableTypeDescription
{decrypted}StringThe decrypted original text

Errors

ErrorDescription
Invalid keyThe provided key is not a valid Fernet key
Invalid tokenThe token is not a valid Fernet token
Token expiredThe token has expired (if TTL was set during encryption)

Tips

  • You must use the same key that was used for encryption
  • If decryption fails, verify the key matches the one used during encryption

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.