PROCESIO
OverviewPlatform ActionsIntegrations & DemosMarketplaceCustom ActionsDeveloperโ€™s Guide

Hash

Computes the hash of a text or a file with MD5, SHA-1, SHA-2 or SHA-3, as lower-case hex.

The Hash action computes a fingerprint (hash) of a text or a file. Use it to compare files without opening them, to detect changes, or to produce the checksum another system asks for.

Add the action

In the Process Designer toolbox, open Converters โ€บ Cryptographic and pick Hash (or type Hash in the search box).

The Hash action properties: Input File, Input String, Hash and Result

Inputs and outputs

FieldDirectionTypeRequiredWhat to put / what you get
Input FileInputFileNo*The file to hash.
Input StringInputTextNo*The text to hash. Ignored when Input File is given.
HashInputOptionYesThe algorithm: MD5, SHA1, SHA256, SHA3_256, SHA3_384, SHA3_512, SHA384 or SHA512.
ResultOutputTextYesThe hash as lower-case hexadecimal.

* Fill one of the two. With both empty, the step fails with Both file and string are null. Please check again the inputs.

Example

InputHashResult
Input String helloSHA2562cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824
Input String helloMD55d41402abc4b2a76b9719d911017c592
Input File notes.txt (content hello), Input String ignoredSHA2562cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824

Good to know

  • A text is hashed as UTF-8 bytes, so the result matches the same text hashed by most other tools.
  • A file is hashed byte for byte, so a text file and the same text typed in Input String give the same hash.
  • MD5 and SHA-1 are fine for checksums, but too weak for security purposes. Prefer SHA-256 or stronger.
  • To hash with a secret key (HMAC), use Hash Mac.

On this page