CRYPTO Hash file function

The CRYPTO Hash file function in RPA.

Help CentreFunctions & Formulas

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

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


Description

The Hash file function computes a cryptographic hash digest of a file. The file is processed in a streaming fashion, making it efficient for large files.


Setting it up

To use the Hash file function, follow these instructions:

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

Once on a process map:

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

Input parameters

ParameterRequiredTypeDefaultDescription
File PathYesText-The path to the file to hash
AlgorithmNoSelectsha256Hash algorithm: sha256, sha512, or md5
VariableNoTexthashVariable name to store the hash digest

Output variables

VariableTypeDescription
{hash}StringThe hexadecimal hash digest of the file

Errors

ErrorDescription
File not foundThe file does not exist

Tips

  • Uses streaming processing, so it is efficient for large files
  • Use to verify file integrity after downloads or transfers

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.