Help Centre › Functions & 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:
- Navigate to the process where you would like to add the Hash file function
- Click on the green button’s drop-down (right side of the green button labelled “Process”)
- On the menu that appears, click on the “+ Activity” item
- From here you can select the CRYPTO Hash file option
- Click "Add" once you are done
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| File Path | Yes | Text | - | The path to the file to hash |
| Algorithm | No | Select | sha256 | Hash algorithm: sha256, sha512, or md5 |
| Variable | No | Text | hash | Variable name to store the hash digest |
Output variables
| Variable | Type | Description |
|---|---|---|
| {hash} | String | The hexadecimal hash digest of the file |
Errors
| Error | Description |
|---|---|
| File not found | The file does not exist |
Tips
- Uses streaming processing, so it is efficient for large files
- Use to verify file integrity after downloads or transfers