CRYPTO Encrypt file function

The CRYPTO Encrypt file function in RPA.

Help CentreFunctions & Formulas

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

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


Description

The Encrypt file function encrypts a file using a Fernet key. The encrypted output is written to a new file, leaving the original file unchanged.


Setting it up

To use the Encrypt file function, follow these instructions:

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

Once on a process map:

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

Input parameters

ParameterRequiredTypeDefaultDescription
File PathYesText-The path to the file to encrypt
KeyYesText-The Fernet encryption key
Output PathNoTextfile_path + .encThe path for the encrypted output file
VariableNoTextencrypted_fileVariable name to store the output file path

Output variables

VariableTypeDescription
{encrypted_file}StringThe path to the encrypted output file

Errors

ErrorDescription
File not foundThe source file does not exist
Invalid keyThe provided key is not a valid Fernet key

Tips

  • The original file is not modified or deleted
  • Default output appends .enc to the original filename

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.