CRYPTO Decrypt file function

The CRYPTO Decrypt file function in RPA.

Help CentreFunctions & Formulas

This article describes the RPA Crypto functionality to decrypt a file.

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


Description

The Decrypt file function decrypts an encrypted file using a Fernet key. The decrypted output is written to a new file.


Setting it up

To use the Decrypt file function, follow these instructions:

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

Once on a process map:

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

Input parameters

ParameterRequiredTypeDefaultDescription
File PathYesText-The path to the encrypted file to decrypt
KeyYesText-The Fernet key used for encryption
Output PathNoText-The path for the decrypted output file. Defaults to removing the .enc extension.
VariableNoTextdecrypted_fileVariable name to store the output file path

Output variables

VariableTypeDescription
{decrypted_file}StringThe path to the decrypted output file

Errors

ErrorDescription
File not foundThe encrypted file does not exist
Invalid keyThe provided key is not a valid Fernet key
Invalid fileThe file is not a valid Fernet-encrypted file

Tips

  • The default output path removes the .enc extension from the input filename
  • You must use the same key that was used for 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.