Hash File icon

Hash File

Calculate the hash of a file

MD5

AI-generated

Summary

Calculate the MD5 hash of a binary file provided in the input item and append the resulting hash as a hexadecimal string in a specified JSON field.

Inputs

  • Input Binary Field — The name of the binary property containing the file to hash; defaults to 'data'.
  • Output Hash Field — The name of the JSON field where the output MD5 hash will be stored; defaults to 'hash'.

Output shape

A list of items, each containing the original JSON data augmented with a new field holding the MD5 hash as a hex string, and the original binary data preserved.

The operation processes each input item independently. The output hash field is configurable. If the specified binary field does not exist, the node will error.

Links

Discussion