Hash File icon

Hash File

Calculate the hash of a file

SHA-512

AI-generated

Summary

Calculate the SHA-512 hash of a file contained in a specified binary input field and output the hash as a hexadecimal string in the JSON output under a configurable field name.

Inputs

  • Input Binary Field (required) — The name of the binary input field that holds the file to be hashed (default is 'data').
  • Output Hash Field (required) — The name of the JSON output field where the resulting SHA-512 hash string will be set (default is 'hash').

Output shape

a list of items, each retaining the original item's JSON and binary data, with the SHA-512 hash string added to each item's JSON under the specified output field

The hash is computed on the binary data buffer from the specified input binary field and encoded as a hexadecimal string. Each input item is processed independently and corresponds to one output item.

Links

Discussion