Skip to main content

Hash File

Current configuration of the Hash File task in the Workflow Designer

This task calculates the digital fingerprint of a file, known as a "hash" or "checksum". This process is fundamental for verifying file integrity, ensuring that the file has not been altered or corrupted during download or transfer.

What is a File Hash Used For?​

A hash is a unique string of characters generated by an algorithm based on the content of a file. It works like a fingerprint: even a minor modification to the file, such as changing a single letter, will produce a completely different hash.

The main uses include:

  • Integrity Verification: By comparing the hash calculated on your file with the original one provided by the developer, you can be certain that the file is identical and not corrupted.
  • Security: It helps ensure that a downloaded file has not been tampered with to include malware.
  • Unique Identification: It allows for the unique identification of a file.

Configuration​

File to Import​

You can select a file-type parameter through the Parameter List or you can directly enter the absolute path of the file in the text area next to "File to Import".

Algorithm​

In the "Algorithm" field, you can select one of the available hashing algorithms.

Result​

After selecting the file and the algorithm, the task will calculate and display the resulting hash.

Output Parameter​

Upon completion of its execution, this task exposes Output Parameters that can be used in subsequent tasks.

  • result: This parameter can contain an error message or, if a file is provided and an algorithm is specified, the task will calculate and return the resulting hash.
  • resultJson: Represents the result of the task execution in JSON format, including general information, configurations, and execution details.